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

Port 71a4a92dda to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Claire committed 2025-05-30 17:43:13 +02:00
1 parent c00e27aa55
commit 4693aab179
2 files changed
+2 -2

No files matched your search

@@ -916,7 +916,7 @@ export const AccountHeader: React.FC<{
<div className='account__header__badges'>{badges}</div>
)}
{account.id !== me && signedIn && (
{account.id !== me && signedIn && !(suspended || hidden) && (
<FamiliarFollowers accountId={accountId} />
)}
@@ -174,7 +174,7 @@ class AccountTimeline extends ImmutablePureComponent {
prepend={
<>
<AccountHeader accountId={this.props.accountId} hideTabs={forceEmptyState} tagged={this.props.params.tagged} />
<FeaturedCarousel accountId={this.props.accountId} />
{!forceEmptyState && <FeaturedCarousel accountId={this.props.accountId} />}
</>
}
alwaysPrepend