Skip to content
Snippets Groups Projects
Verified Commit 68c75a08 authored by Haelwenn's avatar Haelwenn
Browse files

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

Closes: #903
parent 99f50bf3
No related branches found
No related tags found
2 merge requests!1912Feature/static fe,!1169MastoAPI account_view.ex: requested is false when following is true
Pipeline #11963 failed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment