Fix user preference to show trends not working on public pages (#11740)

Fix #11738
lolsob-rspec
Eugen Rochko 2019-09-03 04:57:07 +02:00 committed by GitHub
parent feeecba886
commit 2807f39900
1 changed files with 1 additions and 1 deletions

View File

@ -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?