1
0
mirror of https://git.pleroma.social/sjw/pleroma.git synced 2024-12-23 05:55:14 +01:00

Apply suggestion to lib/pleroma/user.ex

This commit is contained in:
Sadposter 2019-12-10 18:49:41 +00:00
parent 8cfaab8f04
commit 457821adb0

View File

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