Bluesky app fork with some witchin' additions 💫

explicitly filter out labelers (#4629)

authored by hailey.at and committed by

GitHub dd5198f3 340c2c5e

+25 -18
+1
src/components/StarterPack/Main/ProfilesList.tsx
··· 47 47 // The server returns these sorted by descending creation date, so we want to invert 48 48 const profiles = data?.pages 49 49 .flatMap(p => p.items.map(i => i.subject)) 50 + .filter(p => !p.associated?.labeler) 50 51 .reverse() 51 52 const isOwn = new AtUri(listUri).host === currentAccount?.did 52 53
+19 -16
src/screens/StarterPack/StarterPackLandingScreen.tsx
··· 239 239 t.atoms.border_contrast_low, 240 240 ] 241 241 }> 242 - {starterPack.listItemsSample?.slice(0, 8).map((item, i) => ( 243 - <View 244 - key={item.subject.did} 245 - style={[ 246 - a.py_lg, 247 - a.px_md, 248 - (!isTabletOrDesktop || i !== 0) && a.border_t, 249 - t.atoms.border_contrast_low, 250 - {pointerEvents: 'none'}, 251 - ]}> 252 - <ProfileCard 253 - profile={item.subject} 254 - moderationOpts={moderationOpts} 255 - /> 256 - </View> 257 - ))} 242 + {starterPack.listItemsSample 243 + ?.filter(p => !p.subject.associated?.labeler) 244 + .slice(0, 8) 245 + .map((item, i) => ( 246 + <View 247 + key={item.subject.did} 248 + style={[ 249 + a.py_lg, 250 + a.px_md, 251 + (!isTabletOrDesktop || i !== 0) && a.border_t, 252 + t.atoms.border_contrast_low, 253 + {pointerEvents: 'none'}, 254 + ]}> 255 + <ProfileCard 256 + profile={item.subject} 257 + moderationOpts={moderationOpts} 258 + /> 259 + </View> 260 + ))} 258 261 </View> 259 262 </View> 260 263 )}
+5 -2
src/screens/StarterPack/Wizard/StepProfiles.tsx
··· 38 38 } = useActorSearchPaginated({ 39 39 query: encodeURIComponent('*'), 40 40 }) 41 - const topFollowers = topPages?.pages.flatMap(p => p.actors) 41 + const topFollowers = topPages?.pages 42 + .flatMap(p => p.actors) 43 + .filter(p => !p.associated?.labeler) 42 44 43 - const {data: results, isFetching: isFetchingResults} = 45 + const {data: resultsUnfiltered, isFetching: isFetchingResults} = 44 46 useActorAutocompleteQuery(query, true, 12) 47 + const results = resultsUnfiltered?.filter(p => !p.associated?.labeler) 45 48 46 49 const isLoading = isLoadingTopPages || isFetchingResults 47 50