Skip to content
Snippets Groups Projects
Commit 93577f74 authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Use old rules for mention notifications as for mentions timeline

parent fb48cc3b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment