obligatory format commit

This commit is contained in:
Sadposter 2019-11-28 10:40:50 +00:00
parent fa97eddf8a
commit c7cc80a9ee
2 changed files with 8 additions and 7 deletions

View file

@ -1020,7 +1020,8 @@ def muted_notifications?(user, %{ap_id: ap_id}),
do: Enum.member?(user.muted_notifications, ap_id) do: Enum.member?(user.muted_notifications, ap_id)
def blocks?(%User{} = user, %User{} = target) do def blocks?(%User{} = user, %User{} = target) do
blocks_ap_id?(user, target) || (!User.following?(user, target) && blocks_domain?(user, target)) blocks_ap_id?(user, target) ||
(!User.following?(user, target) && blocks_domain?(user, target))
end end
def blocks?(nil, _), do: false def blocks?(nil, _), do: false