Commit 7f530f6f authored by kaniini's avatar kaniini
Browse files

mastodon api: relationship view: better handle no pre-existing follow activity

parent e69faf55
Pipeline #3935 passed with stages
in 5 minutes and 53 seconds
......@@ -73,7 +73,13 @@ def render("mention.json", %{user: user}) do
def render("relationship.json", %{user: user, target: target}) do
follow_activity = Pleroma.Web.ActivityPub.Utils.fetch_latest_follow(user, target)
requested =["state"] == "pending"
requested =
if follow_activity do["state"] == "pending"
id: to_string(,
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