Reject follow requests of blocked users (#10633)

lolsob-rspec
ThibG 2019-04-25 02:47:33 +02:00 committed by Eugen Rochko
parent d5d779cd34
commit 140be28787
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@ class BlockService < BaseService
UnfollowService.new.call(account, target_account) if account.following?(target_account) UnfollowService.new.call(account, target_account) if account.following?(target_account)
UnfollowService.new.call(target_account, account) if target_account.following?(account) UnfollowService.new.call(target_account, account) if target_account.following?(account)
RejectFollowService.new.call(account, target_account) if target_account.requested?(account)
block = account.block!(target_account) block = account.block!(target_account)