mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 19:23:41 +01:00
Use old rules for mention notifications as for mentions timeline
This commit is contained in:
parent
fb48cc3b74
commit
93577f74e7
1 changed files with 18 additions and 1 deletions
|
@ -14,10 +14,27 @@ class NotifyService < BaseService
|
|||
|
||||
private
|
||||
|
||||
def blocked_mention?
|
||||
FeedManager.instance.filter?(:mentions, @notification.mention.status, @recipient)
|
||||
end
|
||||
|
||||
def blocked_favourite?
|
||||
false
|
||||
end
|
||||
|
||||
def blocked_follow?
|
||||
false
|
||||
end
|
||||
|
||||
def blocked_reblog?
|
||||
false
|
||||
end
|
||||
|
||||
def blocked?
|
||||
blocked = false
|
||||
blocked = false
|
||||
blocked ||= @recipient.id == @notification.from_account.id
|
||||
blocked ||= @recipient.blocking?(@notification.from_account)
|
||||
blocked ||= send("blocked_#{@notification.type}?")
|
||||
blocked
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue