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