diff options
author | Hailey <me@haileyok.com> | 2024-08-08 10:51:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-08 10:51:54 -0700 |
commit | c1af767fa62361407d0584a94bd206dbd92323bc (patch) | |
tree | 482d26973863c3b8e9384f611ce9992ce8a52efd /src | |
parent | a0756c53be7991de1b2bd0c536c25e0d5995c992 (diff) | |
download | voidsky-c1af767fa62361407d0584a94bd206dbd92323bc.tar.zst |
Remove client filtering of starter packs (#4753)
Diffstat (limited to 'src')
-rw-r--r-- | src/state/queries/profile-lists.ts | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/state/queries/profile-lists.ts b/src/state/queries/profile-lists.ts index 75e3dd6e4..03c983ff8 100644 --- a/src/state/queries/profile-lists.ts +++ b/src/state/queries/profile-lists.ts @@ -40,18 +40,10 @@ export function useProfileListsQuery(did: string, opts?: {enabled?: boolean}) { pages: data.pages.map(page => { return { ...page, - lists: page.lists - /* - * Starter packs use a reference list, which we do not want to - * 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 - }), + lists: page.lists.filter(list => { + const decision = moderateUserList(list, moderationOpts!) + return !decision.ui('contentList').filter + }), } }), } |