Fix 'Lists' & 'Feeds' not displaying their contents on muted profiles (#10101)
This commit is contained in:
@@ -57,7 +57,9 @@ export function useProfileFeedgensQuery(
|
||||
// filter by labels
|
||||
.filter(list => {
|
||||
const decision = moderateFeedGenerator(list, moderationOpts!)
|
||||
return !decision.ui('contentList').filter
|
||||
return !decision
|
||||
.ui('contentList')
|
||||
.filters.some(cause => cause.type !== 'muted')
|
||||
}),
|
||||
}
|
||||
}),
|
||||
|
||||
@@ -46,7 +46,9 @@ export function useProfileListsQuery(did: string, opts?: {enabled?: boolean}) {
|
||||
...page,
|
||||
lists: page.lists.filter(list => {
|
||||
const decision = moderateUserList(list, moderationOpts!)
|
||||
return !decision.ui('contentList').filter
|
||||
return !decision
|
||||
.ui('contentList')
|
||||
.filters.some(cause => cause.type !== 'muted')
|
||||
}),
|
||||
}
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user