mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix setting for trending tags and trending links notifications being swapped (#1771)
This commit is contained in:
parent
32762f2fa8
commit
aa08399e6f
@ -33,8 +33,8 @@ module Trends
|
|||||||
statuses_requiring_review = statuses.request_review
|
statuses_requiring_review = statuses.request_review
|
||||||
|
|
||||||
User.staff.includes(:account).find_each do |user|
|
User.staff.includes(:account).find_each do |user|
|
||||||
links = user.allows_trending_tags_review_emails? ? links_requiring_review : []
|
links = user.allows_trending_links_review_emails? ? links_requiring_review : []
|
||||||
tags = user.allows_trending_links_review_emails? ? tags_requiring_review : []
|
tags = user.allows_trending_tags_review_emails? ? tags_requiring_review : []
|
||||||
statuses = user.allows_trending_statuses_review_emails? ? statuses_requiring_review : []
|
statuses = user.allows_trending_statuses_review_emails? ? statuses_requiring_review : []
|
||||||
next if links.empty? && tags.empty? && statuses.empty?
|
next if links.empty? && tags.empty? && statuses.empty?
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user