Remove client filtering of starter packs (#4753)
parent
a0756c53be
commit
c1af767fa6
|
@ -40,18 +40,10 @@ export function useProfileListsQuery(did: string, opts?: {enabled?: boolean}) {
|
||||||
pages: data.pages.map(page => {
|
pages: data.pages.map(page => {
|
||||||
return {
|
return {
|
||||||
...page,
|
...page,
|
||||||
lists: page.lists
|
lists: page.lists.filter(list => {
|
||||||
/*
|
const decision = moderateUserList(list, moderationOpts!)
|
||||||
* Starter packs use a reference list, which we do not want to
|
return !decision.ui('contentList').filter
|
||||||
* show on profiles. At some point we could probably just filter
|
}),
|
||||||
* this out on the backend instead of in the client.
|
|
||||||
*/
|
|
||||||
.filter(l => l.purpose !== 'app.bsky.graph.defs#referencelist')
|
|
||||||
// filter by labels
|
|
||||||
.filter(list => {
|
|
||||||
const decision = moderateUserList(list, moderationOpts!)
|
|
||||||
return !decision.ui('contentList').filter
|
|
||||||
}),
|
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue