Skip to content
Snippets Groups Projects
Commit 19f63ff8 authored by alpaca-tc's avatar alpaca-tc Committed by Eugen
Browse files

Check @recipient.user at the first (#1939)

parent babbb213
No related branches found
No related tags found
No related merge requests found
......@@ -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?
......
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