Hide bio & familiar followers from Followers/Following lists (#38622)

This commit is contained in:
diondiondion authored and GitHub committed 2026-04-09 09:00:09 +00:00
1 parent b6f09b9a2b
commit 4e60a6f163
3 files changed
+14 -7

No files matched your search

@@ -146,7 +146,6 @@ export const CollectionAccountsList: React.FC<{
<AccountListItem
accountId={account_id}
withBorder={index !== items.length - 1}
stats={['followers', 'last-active']}
renderButton={renderAccountItemButton}
/>
</Article>
@@ -53,12 +53,20 @@ export const AccountList: FC<AccountListProps> = ({
}
const children =
list?.items.map((followerId) => (
<AccountListItem key={followerId} accountId={followerId} />
<AccountListItem
key={followerId}
accountId={followerId}
withBio={false}
/>
)) ?? [];
if (prependAccountId) {
children.unshift(
<AccountListItem key={prependAccountId} accountId={prependAccountId} />,
<AccountListItem
key={prependAccountId}
accountId={prependAccountId}
withBio={false}
/>,
);
}
return children;