Browse Source

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

closed-social-v3
alpaca-tc 7 years ago
committed by Eugen
parent
commit
19f63ff801
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/services/notify_service.rb

+ 1
- 1
app/services/notify_service.rb 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?

Loading…
Cancel
Save