Skip to content

Commit

Permalink
Reject follow requests of blocked users (mastodon#10633)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored and rosylilly committed May 4, 2019
1 parent fcbabee commit 57ffa06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/services/block_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,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)

block = account.block!(target_account)

Expand Down

0 comments on commit 57ffa06

Please sign in to comment.