explicitly filter out labelers (#4629)
parent
340c2c5eaf
commit
dd5198f317
|
@ -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
|
// The server returns these sorted by descending creation date, so we want to invert
|
||||||
const profiles = data?.pages
|
const profiles = data?.pages
|
||||||
.flatMap(p => p.items.map(i => i.subject))
|
.flatMap(p => p.items.map(i => i.subject))
|
||||||
|
.filter(p => !p.associated?.labeler)
|
||||||
.reverse()
|
.reverse()
|
||||||
const isOwn = new AtUri(listUri).host === currentAccount?.did
|
const isOwn = new AtUri(listUri).host === currentAccount?.did
|
||||||
|
|
||||||
|
|
|
@ -239,22 +239,25 @@ function LandingScreenLoaded({
|
||||||
t.atoms.border_contrast_low,
|
t.atoms.border_contrast_low,
|
||||||
]
|
]
|
||||||
}>
|
}>
|
||||||
{starterPack.listItemsSample?.slice(0, 8).map((item, i) => (
|
{starterPack.listItemsSample
|
||||||
<View
|
?.filter(p => !p.subject.associated?.labeler)
|
||||||
key={item.subject.did}
|
.slice(0, 8)
|
||||||
style={[
|
.map((item, i) => (
|
||||||
a.py_lg,
|
<View
|
||||||
a.px_md,
|
key={item.subject.did}
|
||||||
(!isTabletOrDesktop || i !== 0) && a.border_t,
|
style={[
|
||||||
t.atoms.border_contrast_low,
|
a.py_lg,
|
||||||
{pointerEvents: 'none'},
|
a.px_md,
|
||||||
]}>
|
(!isTabletOrDesktop || i !== 0) && a.border_t,
|
||||||
<ProfileCard
|
t.atoms.border_contrast_low,
|
||||||
profile={item.subject}
|
{pointerEvents: 'none'},
|
||||||
moderationOpts={moderationOpts}
|
]}>
|
||||||
/>
|
<ProfileCard
|
||||||
</View>
|
profile={item.subject}
|
||||||
))}
|
moderationOpts={moderationOpts}
|
||||||
|
/>
|
||||||
|
</View>
|
||||||
|
))}
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -38,10 +38,13 @@ export function StepProfiles({
|
||||||
} = useActorSearchPaginated({
|
} = useActorSearchPaginated({
|
||||||
query: encodeURIComponent('*'),
|
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)
|
useActorAutocompleteQuery(query, true, 12)
|
||||||
|
const results = resultsUnfiltered?.filter(p => !p.associated?.labeler)
|
||||||
|
|
||||||
const isLoading = isLoadingTopPages || isFetchingResults
|
const isLoading = isLoadingTopPages || isFetchingResults
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue