diff --git a/app/javascript/mastodon/components/account_list_item/index.tsx b/app/javascript/mastodon/components/account_list_item/index.tsx index 26e9631992..e05216fc3a 100644 --- a/app/javascript/mastodon/components/account_list_item/index.tsx +++ b/app/javascript/mastodon/components/account_list_item/index.tsx @@ -11,7 +11,6 @@ import { useRelationship } from 'mastodon/hooks/useRelationship'; import type { Relationship } from 'mastodon/models/relationship'; import { EmojiHTML } from '../emoji/html'; -import { FamiliarFollowers } from '../familiar_followers'; import { FollowButton } from '../follow_button'; import { FormattedDateWrapper } from '../formatted_date'; import { NumberFields, NumberFieldsItem } from '../number_fields'; @@ -31,10 +30,11 @@ interface Props { accountId: string | undefined; stats?: Stat[]; renderButton?: (options: RenderButtonOptions) => React.ReactNode; + withBio?: boolean; withBorder?: boolean; } -const DEFAULT_STATS: Stat[] = ['followers', 'following', 'joined']; +const DEFAULT_STATS: Stat[] = ['followers', 'posts', 'last-active']; /** * Extended account list item with bio, verified link badge, @@ -46,6 +46,7 @@ const DEFAULT_STATS: Stat[] = ['followers', 'following', 'joined']; export const AccountListItem: React.FC = ({ accountId, stats = DEFAULT_STATS, + withBio = true, withBorder = true, renderButton = defaultRenderButton, }) => { @@ -161,8 +162,7 @@ export const AccountListItem: React.FC = ({ /> )} - - {account.note.length > 0 && ( + {withBio && account.note.length > 0 && ( diff --git a/app/javascript/mastodon/features/followers/components/list.tsx b/app/javascript/mastodon/features/followers/components/list.tsx index 734bfeac0e..734409ee55 100644 --- a/app/javascript/mastodon/features/followers/components/list.tsx +++ b/app/javascript/mastodon/features/followers/components/list.tsx @@ -53,12 +53,20 @@ export const AccountList: FC = ({ } const children = list?.items.map((followerId) => ( - + )) ?? []; if (prependAccountId) { children.unshift( - , + , ); } return children;