Verified Commit 68c75a08 authored by Haelwenn's avatar Haelwenn
Browse files

MastoAPI account_view.ex: requested is false when following is true

Closes: pleroma/pleroma#903
parent 99f50bf3
Pipeline #11963 failed with stages
in 3 minutes and 32 seconds
......@@ -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 do
if follow_activity and !User.following?(target, user) do
follow_activity.data["state"] == "pending"
else
false
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment