From b89e8086cf2a20aac2d556b03065d15b9128df7b Mon Sep 17 00:00:00 2001 From: Echo Date: Tue, 11 Nov 2025 18:48:07 +0100 Subject: [PATCH] Revert "Fix duplicated counters (fix #32614) (#36785)" This reverts commit 84cdb6cc666d3df4606ee70f3790f7debfebfd56. --- .../status/components/detailed_status.tsx | 56 +++++++------------ 1 file changed, 20 insertions(+), 36 deletions(-) diff --git a/app/javascript/mastodon/features/status/components/detailed_status.tsx b/app/javascript/mastodon/features/status/components/detailed_status.tsx index 26a7c3534ca..9b525b616c7 100644 --- a/app/javascript/mastodon/features/status/components/detailed_status.tsx +++ b/app/javascript/mastodon/features/status/components/detailed_status.tsx @@ -271,17 +271,13 @@ export const DetailedStatus: React.FC<{ to={`/@${status.getIn(['account', 'acct'])}/${status.get('id')}/reblogs`} className='detailed-status__link' > + + + - - - ), - }} + defaultMessage='{count, plural, one {boost} other {boosts}}' + values={{ count: status.get('reblogs_count') }} /> ); @@ -295,34 +291,26 @@ export const DetailedStatus: React.FC<{ to={`/@${status.getIn(['account', 'acct'])}/${status.get('id')}/quotes`} className='detailed-status__link' > + + + - - - ), - }} + defaultMessage='{count, plural, one {quote} other {quotes}}' + values={{ count: status.get('quotes_count') }} /> ); } else { quotesLink = ( + + + - - - ), - }} + defaultMessage='{count, plural, one {quote} other {quotes}}' + values={{ count: status.get('quotes_count') }} /> ); @@ -333,17 +321,13 @@ export const DetailedStatus: React.FC<{ to={`/@${status.getIn(['account', 'acct'])}/${status.get('id')}/favourites`} className='detailed-status__link' > + + + - - - ), - }} + defaultMessage='{count, plural, one {favorite} other {favorites}}' + values={{ count: status.get('favourites_count') }} /> );