浏览代码

Fix BlockService trying to reject incorrect follow request (#11288)

Fixes #11148
master^2
ThibG 4 年前
committed by Eugen Rochko
父节点
当前提交
4e1260feaa
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      app/services/block_service.rb

+ 1
- 1
app/services/block_service.rb 查看文件

@@ -8,7 +8,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)
RejectFollowService.new.call(target_account, account) if target_account.requested?(account)

block = account.block!(target_account)



正在加载...
取消
保存