From: Claire Date: Fri, 13 May 2022 20:57:47 +0000 (+0200) Subject: Fix setting for trending tags and trending links notifications being swapped X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=690ba673cf7d736ad5c9e087fdef16c2b7e2beae;p=mastodon.git Fix setting for trending tags and trending links notifications being swapped https://github.com/glitch-soc/mastodon/pull/1771 --- diff --git a/app/models/trends.rb b/app/models/trends.rb index 0be900b04..0fff66a9f 100644 --- a/app/models/trends.rb +++ b/app/models/trends.rb @@ -33,8 +33,8 @@ module Trends statuses_requiring_review = statuses.request_review User.staff.includes(:account).find_each do |user| - links = user.allows_trending_tags_review_emails? ? links_requiring_review : [] - tags = user.allows_trending_links_review_emails? ? tags_requiring_review : [] + links = user.allows_trending_links_review_emails? ? links_requiring_review : [] + tags = user.allows_trending_tags_review_emails? ? tags_requiring_review : [] statuses = user.allows_trending_statuses_review_emails? ? statuses_requiring_review : [] next if links.empty? && tags.empty? && statuses.empty?