Browse Source

Reject follow requests of blocked users (#10633)

pull/4/head
ThibG 5 years ago
committed by Eugen Rochko
parent
commit
b1a0322a06
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/services/block_service.rb

+ 1
- 0
app/services/block_service.rb View File

@ -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)

Loading…
Cancel
Save