0
0
Fork 0

Refactor notification filtering behavior definition (#29567)

This commit is contained in:
Claire 2024-03-13 11:35:49 +01:00 committed by GitHub
parent 27fd084cb5
commit b43eaa4517
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 35 additions and 13 deletions

View file

@ -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? ||