]> cat aescling's git repositories - mastodon.git/commitdiff
Fix BlockService trying to reject incorrect follow request (#11288)
authorThibG <thib@sitedethib.com>
Thu, 11 Jul 2019 12:50:27 +0000 (14:50 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 11 Jul 2019 12:50:27 +0000 (14:50 +0200)
Fixes #11148

app/services/block_service.rb

index da06361c20628a3683c4ef48373708cf79a604bb..266a0f4b9d0384b107800f61c2e1c37bf91afc4e 100644 (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)