explicitly filter out labelers
This commit is contained in:
@@ -47,6 +47,7 @@ export const ProfilesList = React.forwardRef<SectionRef, ProfilesListProps>(
|
||||
// The server returns these sorted by descending creation date, so we want to invert
|
||||
const profiles = data?.pages
|
||||
.flatMap(p => p.items.map(i => i.subject))
|
||||
.filter(p => !p.associated?.labeler)
|
||||
.reverse()
|
||||
const isOwn = new AtUri(listUri).host === currentAccount?.did
|
||||
|
||||
|
||||
@@ -232,21 +232,24 @@ function LandingScreenLoaded({
|
||||
)}
|
||||
</Text>
|
||||
<View>
|
||||
{starterPack.listItemsSample?.slice(0, 8).map(item => (
|
||||
<View
|
||||
key={item.subject.did}
|
||||
style={[
|
||||
a.py_lg,
|
||||
a.px_md,
|
||||
a.border_t,
|
||||
t.atoms.border_contrast_low,
|
||||
]}>
|
||||
<ProfileCard
|
||||
profile={item.subject}
|
||||
moderationOpts={moderationOpts}
|
||||
/>
|
||||
</View>
|
||||
))}
|
||||
{starterPack.listItemsSample
|
||||
?.filter(p => !p.subject.associated?.labeler)
|
||||
.slice(0, 8)
|
||||
.map(item => (
|
||||
<View
|
||||
key={item.subject.did}
|
||||
style={[
|
||||
a.py_lg,
|
||||
a.px_md,
|
||||
a.border_t,
|
||||
t.atoms.border_contrast_low,
|
||||
]}>
|
||||
<ProfileCard
|
||||
profile={item.subject}
|
||||
moderationOpts={moderationOpts}
|
||||
/>
|
||||
</View>
|
||||
))}
|
||||
</View>
|
||||
</View>
|
||||
)}
|
||||
|
||||
@@ -38,10 +38,13 @@ export function StepProfiles({
|
||||
} = useActorSearchPaginated({
|
||||
query: encodeURIComponent('*'),
|
||||
})
|
||||
const topFollowers = topPages?.pages.flatMap(p => p.actors)
|
||||
const topFollowers = topPages?.pages
|
||||
.flatMap(p => p.actors)
|
||||
.filter(p => !p.associated?.labeler)
|
||||
|
||||
const {data: results, isFetching: isFetchingResults} =
|
||||
const {data: resultsUnfiltered, isFetching: isFetchingResults} =
|
||||
useActorAutocompleteQuery(query, true, 12)
|
||||
const results = resultsUnfiltered?.filter(p => !p.associated?.labeler)
|
||||
|
||||
const isLoading = isLoadingTopPages || isFetchingResults
|
||||
|
||||
|
||||
Reference in New Issue
Block a user