gearheads
/
mastodon
Archived
2
0
Fork 0

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

gh/stable
alpaca-tc 2017-04-17 01:04:05 +09:00 committed by Eugen
parent babbb2135e
commit 19f63ff801
1 changed files with 1 additions and 1 deletions

View File

@ -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?