From 1e9dd6fbc2ecf0c3e7528c40f3145b2a9e591d7a Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Fri, 8 Jun 2018 02:47:07 +0000 Subject: [PATCH] user: fix maybe_direct_follow() after user_info() refactoring broke it slightly --- lib/pleroma/user.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index b1b935a0f..828370cab 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -174,7 +174,7 @@ defmodule Pleroma.User do should_direct_follow = cond do # if the account is locked, don't pre-create the relationship - user_info["locked"] == true -> + user_info[:locked] == true -> false # if the users are blocking each other, we shouldn't even be here, but check for it anyway @@ -193,7 +193,7 @@ defmodule Pleroma.User do if should_direct_follow do follow(follower, followed) else - follower + {:ok, follower} end end -- 2.45.2