Fix BlockService trying to reject incorrect follow request (#11288)

Fixes #11148
lolsob-rspec
ThibG 2019-07-11 14:50:27 +02:00 committed by Eugen Rochko
parent 317b79d673
commit 4bf0ee9467
1 changed files with 1 additions and 1 deletions

View File

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