about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-07-11 14:50:27 +0200
committerEugen Rochko <eugen@zeonfederated.com>2019-07-11 14:50:27 +0200
commit4e1260feaa09bfa7305887e34cb129b37bee6c52 (patch)
treeafff8eb46eff4eaf045b0caa3351fc74dff81a82
parent4e8dcc5dbbf625b7268ed10d36122de985da6bdc (diff)
Fix BlockService trying to reject incorrect follow request (#11288)
Fixes #11148
-rw-r--r--app/services/block_service.rb2
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)