瀏覽代碼

Reject follow requests of blocked users (#10633)

ThibG 5 年之前
父節點
當前提交
b1a0322a06
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/services/block_service.rb

+ 1 - 0
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)