Skip to content

Commit

Permalink
Fix BlockService trying to reject incorrect follow request (#11288)
Browse files Browse the repository at this point in the history
Fixes #11148
  • Loading branch information
ClearlyClaire authored and Gargron committed Jul 11, 2019
1 parent 4e8dcc5 commit 4e1260f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/block_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def call(account, target_account)

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)

Expand Down

0 comments on commit 4e1260f

Please sign in to comment.