diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-07-07 21:13:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-07 21:13:08 +0200 |
commit | e2844b7e58e1ebdf666c5fecc97a75620da7bddf (patch) | |
tree | cba236467d1ebd6ea655878971841473b8daae44 /app/helpers/accounts_helper.rb | |
parent | 225c6582d17b8e744c279e254d4e96062afb7a3b (diff) |
Change number_to_human calls to always use 3-digits precision (#16469)
Fixes #16435
Diffstat (limited to 'app/helpers/accounts_helper.rb')
-rw-r--r-- | app/helpers/accounts_helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/accounts_helper.rb b/app/helpers/accounts_helper.rb index 134217734..db3da2b05 100644 --- a/app/helpers/accounts_helper.rb +++ b/app/helpers/accounts_helper.rb @@ -80,17 +80,17 @@ module AccountsHelper def account_description(account) prepend_str = [ [ - number_to_human(account.statuses_count, strip_insignificant_zeros: true), + number_to_human(account.statuses_count, precision: 3, strip_insignificant_zeros: true), I18n.t('accounts.posts', count: account.statuses_count), ].join(' '), [ - number_to_human(account.following_count, strip_insignificant_zeros: true), + number_to_human(account.following_count, precision: 3, strip_insignificant_zeros: true), I18n.t('accounts.following', count: account.following_count), ].join(' '), [ - number_to_human(account.followers_count, strip_insignificant_zeros: true), + number_to_human(account.followers_count, precision: 3, strip_insignificant_zeros: true), I18n.t('accounts.followers', count: account.followers_count), ].join(' '), ].join(', ') |