~cytrogen/masto-fe

99c1f0811b14474d268bd237c04a0ccedb3d2d5e — ThibG 6 years ago 9521cac
Fix BlockService trying to reject incorrect follow request (#11288)

Fixes #11148
1 files changed, 1 insertions(+), 1 deletions(-)

M app/services/block_service.rb
M app/services/block_service.rb => app/services/block_service.rb +1 -1
@@ 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)