Skip to content

Commit

Permalink
Fix BlockService trying to reject incorrect follow request (mastodon#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire committed Jul 14, 2019
1 parent 9521cac commit 99c1f08
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 99c1f08

Please sign in to comment.