]> 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)
committerThibaut Girka <thib@sitedethib.com>
Sun, 14 Jul 2019 22:48:50 +0000 (00:48 +0200)
Fixes #11148

app/services/block_service.rb

index 9050a48585cea9cb18984661a91249cd5a35ab44..0d9a6eccda47e47ed190285c467b79e2964d7e36 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)