mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-21 12:05:07 +01:00
Check @recipient.user at the first (#1939)
This commit is contained in:
parent
babbb2135e
commit
19f63ff801
@ -6,7 +6,7 @@ class NotifyService < BaseService
|
||||
@activity = activity
|
||||
@notification = Notification.new(account: @recipient, activity: @activity)
|
||||
|
||||
return if blocked? || recipient.user.nil?
|
||||
return if recipient.user.nil? || blocked?
|
||||
|
||||
create_notification
|
||||
send_email if email_enabled?
|
||||
|
Loading…
Reference in New Issue
Block a user