Update account_view.ex

This commit is contained in:
lambda 2019-05-17 09:53:44 +00:00
parent 68c75a08e8
commit 46684db84d

View file

@ -40,7 +40,7 @@ def render("relationship.json", %{user: %User{} = user, target: %User{} = target
follow_activity = Pleroma.Web.ActivityPub.Utils.fetch_latest_follow(user, target)
requested =
if follow_activity and !User.following?(target, user) do
if follow_activity && !User.following?(target, user) do
follow_activity.data["state"] == "pending"
else
false