Skip to content

Commit

Permalink
Change hashtag component in web UI to show numbers for 2 last days (m…
Browse files Browse the repository at this point in the history
…astodon#11742)

To deal with the midnight problem
  • Loading branch information
Gargron authored and hiyuki2578 committed Oct 2, 2019
1 parent 096c623 commit 32e7b76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/javascript/mastodon/components/hashtag.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ const Hashtag = ({ hashtag }) => (
#<span>{hashtag.get('name')}</span>
</Permalink>

<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> }} />
<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> }} />
</div>

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

<div className='trends__item__sparkline'>
Expand Down

0 comments on commit 32e7b76

Please sign in to comment.