always pass mute/block list to claim_search on homepage

This commit is contained in:
Sean Yesmunt 2021-03-03 11:23:20 -05:00
parent 31a554648b
commit 87d04b2e97

View file

@ -23,7 +23,6 @@ type Props = {
mutedUris: Array<string>, mutedUris: Array<string>,
claimIds?: Array<string>, claimIds?: Array<string>,
channelIds?: Array<string>, channelIds?: Array<string>,
notChannelIds?: Array<string>,
pageSize: number, pageSize: number,
orderBy?: Array<string>, orderBy?: Array<string>,
releaseTime?: string, releaseTime?: string,
@ -46,7 +45,6 @@ function ClaimTilesDiscover(props: Props) {
tags, tags,
channelIds, channelIds,
claimIds, claimIds,
notChannelIds,
orderBy, orderBy,
pageSize = 8, pageSize = 8,
releaseTime, releaseTime,
@ -89,7 +87,7 @@ function ClaimTilesDiscover(props: Props) {
not_tags: !showNsfw ? MATURE_TAGS : [], not_tags: !showNsfw ? MATURE_TAGS : [],
any_languages: languages, any_languages: languages,
channel_ids: channelIds || [], channel_ids: channelIds || [],
not_channel_ids: notChannelIds || (!channelIds ? mutedAndBlockedChannelIds : []), not_channel_ids: mutedAndBlockedChannelIds || [],
order_by: orderBy || ['trending_group', 'trending_mixed'], order_by: orderBy || ['trending_group', 'trending_mixed'],
}; };