diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index e53a0f313..1acb9fa18 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -942,7 +942,7 @@ def follow(%User{} = follower, %User{} = followed, state \\ :follow_accept) 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) ->