Readability

This commit is contained in:
Mark Felder 2020-10-13 17:16:47 -05:00 committed by Mark Felder
parent ebd7d1365b
commit 6c50ac1d3f

View file

@ -942,7 +942,7 @@ defmodule Pleroma.User do
deny_follow_blocked = Config.get([:user, :deny_follow_blocked]) deny_follow_blocked = Config.get([:user, :deny_follow_blocked])
cond do cond do
followed.is_active == false -> not followed.is_active ->
{:error, "Could not follow user: #{followed.nickname} is deactivated."} {:error, "Could not follow user: #{followed.nickname} is deactivated."}
deny_follow_blocked and blocks?(followed, follower) -> deny_follow_blocked and blocks?(followed, follower) ->