about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-09-03 04:57:07 +0200
committerGitHub <noreply@github.com>2019-09-03 04:57:07 +0200
commit16c1abdb2d493012f0f0fd5eb36324d2f0cd91d9 (patch)
tree06aeb3cc1658706e0084b6755c48fdd574b5bb3e /app
parent3221f998dd1fcfc2111178637fbb1f712d9e8388 (diff)
Fix user preference to show trends not working on public pages (#11740)
Fix #11738
Diffstat (limited to 'app')
-rw-r--r--app/views/application/_sidebar.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/application/_sidebar.html.haml b/app/views/application/_sidebar.html.haml
index 90c8f9dd1..33e7c96fe 100644
--- a/app/views/application/_sidebar.html.haml
+++ b/app/views/application/_sidebar.html.haml
@@ -5,7 +5,7 @@
   .hero-widget__text
     %p= @instance_presenter.site_short_description.html_safe.presence || @instance_presenter.site_description.html_safe.presence || t('about.generic_description', domain: site_hostname)
 
-- if Setting.trends
+- if Setting.trends && !(user_signed_in? && !current_user.setting_trends)
   - trends = TrendingTags.get(3)
 
   - unless trends.empty?