Skip to content

Commit 32e7b76

Browse files
Gargronhiyuki2578
authored andcommitted
Change hashtag component in web UI to show numbers for 2 last days (mastodon#11742)
To deal with the midnight problem
1 parent 096c623 commit 32e7b76

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/javascript/mastodon/components/hashtag.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ const Hashtag = ({ hashtag }) => (
1212
#<span>{hashtag.get('name')}</span>
1313
</Permalink>
1414

15-
<FormattedMessage id='trends.count_by_accounts' defaultMessage='{count} {rawCount, plural, one {person} other {people}} talking' values={{ rawCount: hashtag.getIn(['history', 0, 'accounts']), count: <strong>{shortNumberFormat(hashtag.getIn(['history', 0, 'accounts']))}</strong> }} />
15+
<FormattedMessage id='trends.count_by_accounts' defaultMessage='{count} {rawCount, plural, one {person} other {people}} talking' values={{ rawCount: hashtag.getIn(['history', 0, 'accounts']), count: <strong>{shortNumberFormat(hashtag.getIn(['history', 0, 'accounts']) + hashtag.getIn(['history', 1, 'accounts']))}</strong> }} />
1616
</div>
1717

1818
<div className='trends__item__current'>
19-
{shortNumberFormat(hashtag.getIn(['history', 0, 'uses']))}
19+
{shortNumberFormat(hashtag.getIn(['history', 0, 'uses']) + hashtag.getIn(['history', 1, 'uses']))}
2020
</div>
2121

2222
<div className='trends__item__sparkline'>

0 commit comments

Comments
 (0)