From 374bae0abe69e9c1dfece084fe3ca8e28a7836dc Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Fri, 28 Dec 2018 18:20:58 +0100 Subject: [PATCH] Do not leak followers count on public pages Fixes #873 --- app/views/accounts/_header.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)