diff options
author | ThibG <thib@sitedethib.com> | 2019-04-25 02:47:33 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-04-25 02:47:33 +0200 |
commit | b1a0322a06e6f8eca736132b1f7f2af8dc179afb (patch) | |
tree | 24ed4086ca8289e9b985269a792cc8e4f56eab4e | |
parent | 80bbf40ff1871b34bba4c0b133a573da459cf72e (diff) |
Reject follow requests of blocked users (#10633)
-rw-r--r-- | app/services/block_service.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/services/block_service.rb b/app/services/block_service.rb index 140b238df..10ed470e0 100644 --- a/app/services/block_service.rb +++ b/app/services/block_service.rb @@ -6,6 +6,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) block = account.block!(target_account) |