Readability
authorMark Felder <feld@FreeBSD.org>
Tue, 13 Oct 2020 22:16:47 +0000 (17:16 -0500)
committerMark Felder <feld@feld.me>
Fri, 15 Jan 2021 17:37:17 +0000 (11:37 -0600)
lib/pleroma/user.ex

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