mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-14 16:28:59 +00:00
Fix a couple unhandled exceptions
This commit is contained in:
@@ -6,7 +6,7 @@ class NotifyService < BaseService
|
||||
@activity = activity
|
||||
@notification = Notification.new(account: @recipient, activity: @activity)
|
||||
|
||||
return if blocked?
|
||||
return if blocked? || recipient.user.nil?
|
||||
|
||||
create_notification
|
||||
send_email if email_enabled?
|
||||
|
||||
Reference in New Issue
Block a user