瀏覽代碼

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

master
alpaca-tc 7 年之前
committed by Eugen
父節點
當前提交
19f63ff801
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      app/services/notify_service.rb

+ 1
- 1
app/services/notify_service.rb 查看文件

@@ -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…
取消
儲存