about summary refs log tree commit diff
path: root/src/state/queries/profile-lists.ts
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-08-08 10:51:54 -0700
committerGitHub <noreply@github.com>2024-08-08 10:51:54 -0700
commitc1af767fa62361407d0584a94bd206dbd92323bc (patch)
tree482d26973863c3b8e9384f611ce9992ce8a52efd /src/state/queries/profile-lists.ts
parenta0756c53be7991de1b2bd0c536c25e0d5995c992 (diff)
downloadvoidsky-c1af767fa62361407d0584a94bd206dbd92323bc.tar.zst
Remove client filtering of starter packs (#4753)
Diffstat (limited to 'src/state/queries/profile-lists.ts')
-rw-r--r--src/state/queries/profile-lists.ts16
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
+            }),
           }
         }),
       }