about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/directory
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-08-31 18:21:02 +0200
committerThibaut Girka <thib@sitedethib.com>2019-08-31 18:23:24 +0200
commitef270ed0df5a247b77853610f2f108206828a67a (patch)
treeb8aad6a1a34cd897bdb187cdf1fb1cacf7ac721c /app/javascript/flavours/glitch/features/directory
parent3619e904da5b22017776abc2f1452f1535205d11 (diff)
Properly hide follower count in profile directory
Diffstat (limited to 'app/javascript/flavours/glitch/features/directory')
-rw-r--r--app/javascript/flavours/glitch/features/directory/components/account_card.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/directory/components/account_card.js b/app/javascript/flavours/glitch/features/directory/components/account_card.js
index 7bab0db0b..5ba263825 100644
--- a/app/javascript/flavours/glitch/features/directory/components/account_card.js
+++ b/app/javascript/flavours/glitch/features/directory/components/account_card.js
@@ -139,7 +139,7 @@ class AccountCard extends ImmutablePureComponent {
 
         <div className='directory__card__extra'>
           <div className='accounts-table__count'>{shortNumberFormat(account.get('statuses_count'))} <small><FormattedMessage id='account.posts' defaultMessage='Toots' /></small></div>
-          <div className='accounts-table__count'>{shortNumberFormat(account.get('followers_count'))} <small><FormattedMessage id='account.followers' defaultMessage='Followers' /></small></div>
+          <div className='accounts-table__count'>{account.get('followers_count') < 0 ? '-' : shortNumberFormat(account.get('followers_count'))} <small><FormattedMessage id='account.followers' defaultMessage='Followers' /></small></div>
           <div className='accounts-table__count'>{account.get('last_status_at') === null ? <FormattedMessage id='account.never_active' defaultMessage='Never' /> : <RelativeTimestamp timestamp={account.get('last_status_at')} />} <small><FormattedMessage id='account.last_status' defaultMessage='Last active' /></small></div>
         </div>
       </div>