diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-05-13 22:57:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-13 22:57:47 +0200 |
commit | aa08399e6f4ff35a7ece05ebbeca4b9771c97927 (patch) | |
tree | 53e3649ffc32d21d83def8419a4a3c4a447464b9 /app/models | |
parent | 32762f2fa864d8f56dfba59e8b5ff6ccf03aecb6 (diff) |
Fix setting for trending tags and trending links notifications being swapped (#1771)
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/trends.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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? |