From: Eugen Rochko Date: Tue, 3 Sep 2019 04:35:44 +0000 (+0200) Subject: Change hashtag component in web UI to show numbers for 2 last days (#11742) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=d19d86fe2b26fb00577d600234c32d726fb199a4;p=mastodon.git Change hashtag component in web UI to show numbers for 2 last days (#11742) To deal with the midnight problem --- diff --git a/app/javascript/mastodon/components/hashtag.js b/app/javascript/mastodon/components/hashtag.js index f091d7893..2456eac9e 100644 --- a/app/javascript/mastodon/components/hashtag.js +++ b/app/javascript/mastodon/components/hashtag.js @@ -12,11 +12,11 @@ const Hashtag = ({ hashtag }) => ( #{hashtag.get('name')} - {shortNumberFormat(hashtag.getIn(['history', 0, 'accounts']))} }} /> + {shortNumberFormat(hashtag.getIn(['history', 0, 'accounts']) + hashtag.getIn(['history', 1, 'accounts']))} }} />
- {shortNumberFormat(hashtag.getIn(['history', 0, 'uses']))} + {shortNumberFormat(hashtag.getIn(['history', 0, 'uses']) + hashtag.getIn(['history', 1, 'uses']))}