[Glitch] Ensure featured carousel respects tags

Port c543e823ab55d7df6c92434981509d50038aa7fb to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Echo 2025-06-10 15:28:41 +02:00 committed by Claire
parent 533af5dcee
commit 1190780d79

View File

@ -138,7 +138,7 @@ class AccountTimeline extends ImmutablePureComponent {
}; };
render () { render () {
const { accountId, statusIds, isLoading, hasMore, suspended, isAccount, hidden, multiColumn, remote, remoteUrl } = this.props; const { accountId, statusIds, isLoading, hasMore, suspended, isAccount, hidden, multiColumn, remote, remoteUrl, params: { tagged } } = this.props;
if (isLoading && statusIds.isEmpty()) { if (isLoading && statusIds.isEmpty()) {
return ( return (
@ -173,8 +173,8 @@ class AccountTimeline extends ImmutablePureComponent {
<StatusList <StatusList
prepend={ prepend={
<> <>
<AccountHeader accountId={this.props.accountId} hideTabs={forceEmptyState} tagged={this.props.params.tagged} /> <AccountHeader accountId={this.props.accountId} hideTabs={forceEmptyState} tagged={tagged} />
{!forceEmptyState && <FeaturedCarousel accountId={this.props.accountId} />} {!forceEmptyState && <FeaturedCarousel accountId={this.props.accountId} tagged={tagged} />}
</> </>
} }
alwaysPrepend alwaysPrepend