diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-12-28 18:20:58 +0100 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2018-12-28 20:05:47 +0100 |
commit | 374bae0abe69e9c1dfece084fe3ca8e28a7836dc (patch) | |
tree | 0bc78d1ba21d651e64bc7fbe16c494e975062350 | |
parent | f349fe2159fb36e598263f2797f041417ef7c2da (diff) |
Do not leak followers count on public pages
Fixes #873
-rw-r--r-- | app/views/accounts/_header.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/accounts/_header.html.haml b/app/views/accounts/_header.html.haml index a40ecb0d4..3afd2e482 100644 --- a/app/views/accounts/_header.html.haml +++ b/app/views/accounts/_header.html.haml @@ -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) |