Skip to content

Commit a214ba4

Browse files
Gargronhiyuki2578
authored andcommitted
Fix user preference to show trends not working on public pages (mastodon#11740)
Fix mastodon#11738
1 parent bf91537 commit a214ba4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/views/application/_sidebar.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
.hero-widget__text
66
%p= @instance_presenter.site_short_description.html_safe.presence || @instance_presenter.site_description.html_safe.presence || t('about.generic_description', domain: site_hostname)
77

8-
- if Setting.trends
8+
- if Setting.trends && !(user_signed_in? && !current_user.setting_trends)
99
- trends = TrendingTags.get(3)
1010

1111
- unless trends.empty?

0 commit comments

Comments
 (0)