mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-28 18:40:47 +00:00
Revert "Fix duplicated counters (fix #32614)" (#36834)
Some checks failed
Check i18n / check-i18n (push) Waiting to run
Chromatic / Run Chromatic (push) Waiting to run
CodeQL / Analyze (actions) (push) Waiting to run
CodeQL / Analyze (javascript) (push) Waiting to run
CodeQL / Analyze (ruby) (push) Waiting to run
Check formatting / lint (push) Waiting to run
JavaScript Linting / lint (push) Waiting to run
Ruby Linting / lint (push) Waiting to run
JavaScript Testing / test (push) Waiting to run
Historical data migration test / test (14-alpine) (push) Waiting to run
Historical data migration test / test (15-alpine) (push) Waiting to run
Historical data migration test / test (16-alpine) (push) Waiting to run
Historical data migration test / test (17-alpine) (push) Waiting to run
Ruby Testing / build (production) (push) Waiting to run
Ruby Testing / build (test) (push) Waiting to run
Ruby Testing / test (.ruby-version) (push) Blocked by required conditions
Ruby Testing / test (3.2) (push) Blocked by required conditions
Ruby Testing / test (3.3) (push) Blocked by required conditions
Ruby Testing / ImageMagick tests (.ruby-version) (push) Blocked by required conditions
Ruby Testing / ImageMagick tests (3.2) (push) Blocked by required conditions
Ruby Testing / ImageMagick tests (3.3) (push) Blocked by required conditions
Ruby Testing / End to End testing (.ruby-version) (push) Blocked by required conditions
Ruby Testing / End to End testing (3.2) (push) Blocked by required conditions
Ruby Testing / End to End testing (3.3) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (.ruby-version, docker.elastic.co/elasticsearch/elasticsearch:7.17.13) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (.ruby-version, docker.elastic.co/elasticsearch/elasticsearch:8.10.2) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (.ruby-version, opensearchproject/opensearch:2) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (3.2, docker.elastic.co/elasticsearch/elasticsearch:7.17.13) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (3.3, docker.elastic.co/elasticsearch/elasticsearch:7.17.13) (push) Blocked by required conditions
Bundler Audit / security (push) Has been cancelled
CSS Linting / lint (push) Has been cancelled
Haml Linting / lint (push) Has been cancelled
Some checks failed
Check i18n / check-i18n (push) Waiting to run
Chromatic / Run Chromatic (push) Waiting to run
CodeQL / Analyze (actions) (push) Waiting to run
CodeQL / Analyze (javascript) (push) Waiting to run
CodeQL / Analyze (ruby) (push) Waiting to run
Check formatting / lint (push) Waiting to run
JavaScript Linting / lint (push) Waiting to run
Ruby Linting / lint (push) Waiting to run
JavaScript Testing / test (push) Waiting to run
Historical data migration test / test (14-alpine) (push) Waiting to run
Historical data migration test / test (15-alpine) (push) Waiting to run
Historical data migration test / test (16-alpine) (push) Waiting to run
Historical data migration test / test (17-alpine) (push) Waiting to run
Ruby Testing / build (production) (push) Waiting to run
Ruby Testing / build (test) (push) Waiting to run
Ruby Testing / test (.ruby-version) (push) Blocked by required conditions
Ruby Testing / test (3.2) (push) Blocked by required conditions
Ruby Testing / test (3.3) (push) Blocked by required conditions
Ruby Testing / ImageMagick tests (.ruby-version) (push) Blocked by required conditions
Ruby Testing / ImageMagick tests (3.2) (push) Blocked by required conditions
Ruby Testing / ImageMagick tests (3.3) (push) Blocked by required conditions
Ruby Testing / End to End testing (.ruby-version) (push) Blocked by required conditions
Ruby Testing / End to End testing (3.2) (push) Blocked by required conditions
Ruby Testing / End to End testing (3.3) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (.ruby-version, docker.elastic.co/elasticsearch/elasticsearch:7.17.13) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (.ruby-version, docker.elastic.co/elasticsearch/elasticsearch:8.10.2) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (.ruby-version, opensearchproject/opensearch:2) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (3.2, docker.elastic.co/elasticsearch/elasticsearch:7.17.13) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (3.3, docker.elastic.co/elasticsearch/elasticsearch:7.17.13) (push) Blocked by required conditions
Bundler Audit / security (push) Has been cancelled
CSS Linting / lint (push) Has been cancelled
Haml Linting / lint (push) Has been cancelled
This commit is contained in:
parent
11b75d616a
commit
b5a2fe715d
|
|
@ -271,17 +271,13 @@ export const DetailedStatus: React.FC<{
|
||||||
to={`/@${status.getIn(['account', 'acct'])}/${status.get('id')}/reblogs`}
|
to={`/@${status.getIn(['account', 'acct'])}/${status.get('id')}/reblogs`}
|
||||||
className='detailed-status__link'
|
className='detailed-status__link'
|
||||||
>
|
>
|
||||||
|
<span className='detailed-status__reblogs'>
|
||||||
|
<AnimatedNumber value={status.get('reblogs_count')} />
|
||||||
|
</span>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id='status.reblogs'
|
id='status.reblogs'
|
||||||
defaultMessage='{count, plural, one {{counter} boost} other {{counter} boosts}}'
|
defaultMessage='{count, plural, one {boost} other {boosts}}'
|
||||||
values={{
|
values={{ count: status.get('reblogs_count') }}
|
||||||
count: status.get('reblogs_count'),
|
|
||||||
counter: (
|
|
||||||
<span className='detailed-status__reblogs'>
|
|
||||||
<AnimatedNumber value={status.get('reblogs_count')} />
|
|
||||||
</span>
|
|
||||||
),
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
</Link>
|
</Link>
|
||||||
);
|
);
|
||||||
|
|
@ -295,34 +291,26 @@ export const DetailedStatus: React.FC<{
|
||||||
to={`/@${status.getIn(['account', 'acct'])}/${status.get('id')}/quotes`}
|
to={`/@${status.getIn(['account', 'acct'])}/${status.get('id')}/quotes`}
|
||||||
className='detailed-status__link'
|
className='detailed-status__link'
|
||||||
>
|
>
|
||||||
|
<span className='detailed-status__quotes'>
|
||||||
|
<AnimatedNumber value={status.get('quotes_count')} />
|
||||||
|
</span>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id='status.quotes'
|
id='status.quotes'
|
||||||
defaultMessage='{count, plural, one {{counter} quote} other {{counter} quotes}}'
|
defaultMessage='{count, plural, one {quote} other {quotes}}'
|
||||||
values={{
|
values={{ count: status.get('quotes_count') }}
|
||||||
count: status.get('quotes_count'),
|
|
||||||
counter: (
|
|
||||||
<span className='detailed-status__quotes'>
|
|
||||||
<AnimatedNumber value={status.get('quotes_count')} />
|
|
||||||
</span>
|
|
||||||
),
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
</Link>
|
</Link>
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
quotesLink = (
|
quotesLink = (
|
||||||
<span className='detailed-status__link'>
|
<span className='detailed-status__link'>
|
||||||
|
<span className='detailed-status__quotes'>
|
||||||
|
<AnimatedNumber value={status.get('quotes_count')} />
|
||||||
|
</span>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id='status.quotes'
|
id='status.quotes'
|
||||||
defaultMessage='{count, plural, one {{counter} quote} other {{counter} quotes}}'
|
defaultMessage='{count, plural, one {quote} other {quotes}}'
|
||||||
values={{
|
values={{ count: status.get('quotes_count') }}
|
||||||
count: status.get('quotes_count'),
|
|
||||||
counter: (
|
|
||||||
<span className='detailed-status__quotes'>
|
|
||||||
<AnimatedNumber value={status.get('quotes_count')} />
|
|
||||||
</span>
|
|
||||||
),
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
|
|
@ -333,17 +321,13 @@ export const DetailedStatus: React.FC<{
|
||||||
to={`/@${status.getIn(['account', 'acct'])}/${status.get('id')}/favourites`}
|
to={`/@${status.getIn(['account', 'acct'])}/${status.get('id')}/favourites`}
|
||||||
className='detailed-status__link'
|
className='detailed-status__link'
|
||||||
>
|
>
|
||||||
|
<span className='detailed-status__favorites'>
|
||||||
|
<AnimatedNumber value={status.get('favourites_count')} />
|
||||||
|
</span>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id='status.favourites'
|
id='status.favourites'
|
||||||
defaultMessage='{count, plural, one {{counter} favorite} other {{counter} favorites}}'
|
defaultMessage='{count, plural, one {favorite} other {favorites}}'
|
||||||
values={{
|
values={{ count: status.get('favourites_count') }}
|
||||||
count: status.get('favourites_count'),
|
|
||||||
counter: (
|
|
||||||
<span className='detailed-status__favorites'>
|
|
||||||
<AnimatedNumber value={status.get('favourites_count')} />
|
|
||||||
</span>
|
|
||||||
),
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
</Link>
|
</Link>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user