Blocking will prevent e-mail notifications from blocked user, blocks in UI
This commit is contained in:
parent
7b9a4af311
commit
70e9dd0b5b
12 changed files with 134 additions and 32 deletions
|
@ -10,7 +10,7 @@ class FollowService < BaseService
|
|||
follow = source_account.follow!(target_account)
|
||||
|
||||
if target_account.local?
|
||||
NotificationMailer.follow(target_account, source_account).deliver_later
|
||||
NotificationMailer.follow(target_account, source_account).deliver_later unless target_account.blocking?(source_account)
|
||||
else
|
||||
subscribe_service.call(target_account)
|
||||
NotificationWorker.perform_async(follow.stream_entry.id, target_account.id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue