Fix featured posts and familiar followers showing up on hidden accounts (#34855)

This commit is contained in:
Claire 2025-05-30 10:33:52 +02:00 committed by GitHub
parent 426ee069b5
commit 71a4a92dda
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -912,7 +912,7 @@ export const AccountHeader: React.FC<{
<div className='account__header__badges'>{badges}</div> <div className='account__header__badges'>{badges}</div>
)} )}
{account.id !== me && signedIn && ( {account.id !== me && signedIn && !(suspended || hidden) && (
<FamiliarFollowers accountId={accountId} /> <FamiliarFollowers accountId={accountId} />
)} )}

View file

@ -173,7 +173,7 @@ class AccountTimeline extends ImmutablePureComponent {
prepend={ prepend={
<> <>
<AccountHeader accountId={this.props.accountId} hideTabs={forceEmptyState} tagged={this.props.params.tagged} /> <AccountHeader accountId={this.props.accountId} hideTabs={forceEmptyState} tagged={this.props.params.tagged} />
<FeaturedCarousel accountId={this.props.accountId} /> {!forceEmptyState && <FeaturedCarousel accountId={this.props.accountId} />}
</> </>
} }
alwaysPrepend alwaysPrepend