diff options
author | ThibG <thib@sitedethib.com> | 2019-07-11 14:50:27 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-07-11 14:50:27 +0200 |
commit | 4e1260feaa09bfa7305887e34cb129b37bee6c52 (patch) | |
tree | afff8eb46eff4eaf045b0caa3351fc74dff81a82 | |
parent | 4e8dcc5dbbf625b7268ed10d36122de985da6bdc (diff) |
Fix BlockService trying to reject incorrect follow request (#11288)
Fixes #11148
-rw-r--r-- | app/services/block_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/block_service.rb b/app/services/block_service.rb index da06361c2..266a0f4b9 100644 --- a/app/services/block_service.rb +++ b/app/services/block_service.rb @@ -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) |