mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-13 15:58:50 +00:00
Refactor notification filtering behavior definition (#29567)
This commit is contained in:
@@ -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? ||
|
||||
|
||||
Reference in New Issue
Block a user