From 27b1101d12756eaa0b6d169ac0efd182a02342a9 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Mon, 19 Apr 2021 13:01:51 -0400 Subject: [PATCH] don't pass streamTypes to homepage following section so the following section shows all file types --- homepages/homepage.js | 12 +----------- ui/component/claimTilesDiscover/view.jsx | 2 +- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/homepages/homepage.js b/homepages/homepage.js index 051db2169..48181bcf1 100644 --- a/homepages/homepage.js +++ b/homepages/homepage.js @@ -151,6 +151,7 @@ export default function GetHomePageRowData( link: `/$/${PAGES.CHANNELS_FOLLOWING}`, icon: ICONS.SUBSCRIBE, options: { + streamTypes: null, orderBy: ['release_time'], releaseTime: subscribedChannels.length > 20 @@ -232,16 +233,6 @@ export default function GetHomePageRowData( }, }; - const LATEST_FROM_LBRYCAST = { - title: __('Latest From @lbrycast'), - link: `/@lbrycast:4`, - options: { - orderBy: ['release_time'], - pageSize: getPageSize(4), - channelIds: ['4c29f8b013adea4d5cca1861fb2161d5089613ea'], - }, - }; - if (showPersonalizedChannels) rowData.push(RECENT_FROM_FOLLOWING); if (showPersonalizedTags && !showIndividualTags) rowData.push(TRENDING_FOR_TAGS); if (showPersonalizedTags && showIndividualTags) { @@ -259,7 +250,6 @@ export default function GetHomePageRowData( // rowData.push(TRENDING_ON_LBRY); rowData.push(LATEST_FROM_LBRY); - rowData.push(LATEST_FROM_LBRYCAST); if (!showPersonalizedChannels) rowData.push(TOP_CHANNELS); diff --git a/ui/component/claimTilesDiscover/view.jsx b/ui/component/claimTilesDiscover/view.jsx index 6c4c7fdc9..0b283e428 100644 --- a/ui/component/claimTilesDiscover/view.jsx +++ b/ui/component/claimTilesDiscover/view.jsx @@ -92,7 +92,7 @@ function ClaimTilesDiscover(props: Props) { channel_ids: channelIds || [], not_channel_ids: [], order_by: orderBy || ['trending_group', 'trending_mixed'], - stream_types: streamTypes || SIMPLE_SITE ? [CS.FILE_VIDEO, CS.FILE_AUDIO] : undefined, + stream_types: streamTypes === null ? undefined : SIMPLE_SITE ? [CS.FILE_VIDEO, CS.FILE_AUDIO] : undefined, }; if (!ENABLE_NO_SOURCE_CLAIMS && (!claimType || claimType === 'stream')) {