Browse Source

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

Fix #11738
pull/4/head
Eugen Rochko 4 years ago
committed by GitHub
parent
commit
16c1abdb2d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/views/application/_sidebar.html.haml

+ 1
- 1
app/views/application/_sidebar.html.haml 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?

Loading…
Cancel
Save