Fix broken notifications for mentions from local moderators in 4.2.11 (#31484)
This commit is contained in:
parent
a02ff33f0e
commit
d675803f07
2 changed files with 12 additions and 1 deletions
|
@ -87,7 +87,7 @@ class NotifyService < BaseService
|
|||
|
||||
def from_staff?
|
||||
sender = @notification.from_account
|
||||
sender.local? && sender.user.present? && sender.user_role&.overrides?(@recipient.user_role) && @sender.user_role&.highlighted? && sender.user_role&.can?(*UserRole::Flags::CATEGORIES[:moderation])
|
||||
sender.local? && sender.user.present? && sender.user_role&.overrides?(@recipient.user_role) && sender.user_role&.highlighted? && sender.user_role&.can?(*UserRole::Flags::CATEGORIES[:moderation].map(&:to_sym))
|
||||
end
|
||||
|
||||
def optional_non_following_and_direct?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue