Do not leak followers count on public pages

Fixes #873
lolsob-rspec
Thibaut Girka 2018-12-28 18:20:58 +01:00 committed by ThibG
parent 9bc763840f
commit 6b0ee17046
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)