diff --git a/app/javascript/mastodon/components/hover_card_account.tsx b/app/javascript/mastodon/components/hover_card_account.tsx index 12b74823b5..afe82a6013 100644 --- a/app/javascript/mastodon/components/hover_card_account.tsx +++ b/app/javascript/mastodon/components/hover_card_account.tsx @@ -45,6 +45,19 @@ export const HoverCardAccount = forwardRef< const { familiarFollowers } = useFetchFamiliarFollowers({ accountId }); + const relationship = useAppSelector((state) => + accountId ? state.relationships.get(accountId) : undefined, + ); + const isMutual = relationship?.followed_by && relationship.following; + const isFollower = relationship?.followed_by; + const hasRelationshipLoaded = !!relationship; + + const shouldDisplayFamiliarFollowers = + familiarFollowers.length > 0 && + hasRelationshipLoaded && + !isMutual && + !isFollower; + return (
- {familiarFollowers.length > 0 && ( + {shouldDisplayFamiliarFollowers && ( <> ·