Fix featured posts and familiar followers showing up on hidden accounts (#34855)
This commit is contained in:
@@ -912,7 +912,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} />
|
||||
)}
|
||||
|
||||
|
||||
@@ -173,7 +173,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
|
||||
|
||||
Reference in New Issue
Block a user