What is the current spec for remote follow?

Here’s what definitely works with Mastodon.

GET https://friends.grishka.me/.well-known/webfinger?resource=acct:grishka%40friends.grishka.me

That returns this:

{
  "subject": "acct:grishka@friends.grishka.me",
  "links": [
    {
      "rel": "self",
      "href": "https://friends.grishka.me/users/1",
      "type": "application/activitypub+json"
    },
    {
      "rel": "http://ostatus.org/schema/1.0/subscribe",
      "template": "https://friends.grishka.me/activitypub/externalInteraction?uri={uri}"
    }
  ]
}

I believe this exact structure is required, and the rel field is especially important. Also make sure that you’re setting Content-Type to something sensible like application/json.

1 Like