[Glitch] Fix featured posts and familiar followers showing up on hidden accounts

Port 71a4a92ddad876c42430baed3a0f3ae1983e6f26 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Claire 2025-05-30 10:33:52 +02:00
parent c00e27aa55
commit 4693aab179
2 changed files with 2 additions and 2 deletions

View File

@ -916,7 +916,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

@ -174,7 +174,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