Apply suggestion to lib/pleroma/user.ex
This commit is contained in:
父節點
8cfaab8f04
當前提交
457821adb0
@ -1143,7 +1143,7 @@ defmodule Pleroma.User do
|
||||
def blocks?(nil, _), do: false
|
||||
|
||||
def blocks?(%User{} = user, %User{} = target) do
|
||||
blocks_ap_id?(user, target) ||
|
||||
blocks_user?(user, target) ||
|
||||
(!User.following?(user, target) && blocks_domain?(user, target))
|
||||
end
|
||||
|
||||
|
||||
載入中…
新增問題並參考
Block a user