Refactor notification filtering behavior definition (#29567)
This commit is contained in:
parent
27fd084cb5
commit
b43eaa4517
2 changed files with 35 additions and 13 deletions
|
@ -83,7 +83,7 @@ class NotifyService < BaseService
|
|||
end
|
||||
|
||||
def filter?
|
||||
return false if NON_FILTERABLE_TYPES.include?(@notification.type)
|
||||
return false unless Notification::PROPERTIES[@notification.type][:filterable]
|
||||
return false if override_for_sender?
|
||||
|
||||
from_limited? ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue