Do not leak followers count on public pages

Fixes #873
This commit is contained in:
Thibaut Girka 2018-12-28 18:20:58 +01:00 committed by ThibG
parent f349fe2159
commit 374bae0abe
1 changed files with 1 additions and 1 deletions

View File

@ -39,5 +39,5 @@
%strong= number_to_human account.following_count, strip_insignificant_zeros: true
= t('accounts.following', count: account.following_count)
= link_to account_followers_url(account) do
%strong= number_to_human account.followers_count, strip_insignificant_zeros: true
%strong= hide_followers_count(account) ? '-' : (number_to_human account.followers_count, strip_insignificant_zeros: true)
= t('accounts.followers', count: account.followers_count)