From: Thibaut Girka Date: Fri, 28 Dec 2018 17:20:58 +0000 (+0100) Subject: Do not leak followers count on public pages X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=374bae0abe69e9c1dfece084fe3ca8e28a7836dc;p=mastodon.git Do not leak followers count on public pages Fixes #873 --- 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)