From 1d021fc8e0416f158d3a060c2a9dd44ac7767da9 Mon Sep 17 00:00:00 2001 From: zeppi Date: Mon, 19 Jul 2021 12:38:53 -0400 Subject: [PATCH] more --- ui/redux/actions/search.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ui/redux/actions/search.js b/ui/redux/actions/search.js index 129afbecf..714907c5e 100644 --- a/ui/redux/actions/search.js +++ b/ui/redux/actions/search.js @@ -1,9 +1,11 @@ // @flow import * as ACTIONS from 'constants/action_types'; +import { SEARCH_OPTIONS } from 'constants/search'; import { buildURI, doResolveUris, batchActions, isURIValid, makeSelectClaimForUri } from 'lbry-redux'; import { makeSelectSearchUris, selectSearchValue } from 'redux/selectors/search'; import handleFetchResponse from 'util/handle-fetch'; import { getSearchQueryString } from 'util/query-params'; +import { SIMPLE_SITE } from 'config'; type Dispatch = (action: any) => any; type GetState = () => { search: SearchState }; @@ -130,6 +132,11 @@ export const doFetchRecommendedContent = (uri: string, mature: boolean) => (disp if (!mature) { options['nsfw'] = false; } + + if (SIMPLE_SITE) { + options[SEARCH_OPTIONS.CLAIM_TYPE] = SEARCH_OPTIONS.INCLUDE_FILES; + options[SEARCH_OPTIONS.MEDIA_VIDEO] = true; + } const { title } = claim.value; if (title && options) { dispatch(doSearch(title, options));