Skip to content

Commit

Permalink
Check @recipient.user at the first (#1939)
Browse files Browse the repository at this point in the history
  • Loading branch information
alpaca-tc authored and Gargron committed Apr 16, 2017
1 parent babbb21 commit 19f63ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/notify_service.rb
Expand Up @@ -6,7 +6,7 @@ def call(recipient, activity)
@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?
Expand Down

0 comments on commit 19f63ff

Please sign in to comment.