James Sanford @jsanford@social.froop.com

Software and SRE. Previously at Google, Cloudflare, Apple.

Homepage

https://froop.com/

GitHub

https://github.com/jamessanford

  • Notes
  • Followers 9
  • Following 29
  • Remote follow
James Sanford's avatar
James Sanford
@jsanford@social.froop.com

Under the covers with Mastodon. When you look up @Mastodon@mastodon.social, first a WebFinger request is sent to the domain.

curl 'https://mastodon.social/.well-known/webfinger?resource=acct:Mastodon@mastodon.social'

The response can include something like this:

  "links": [
    {
      "type": "application/activity+json",
      "href": "https://mastodon.social/users/Mastodon"
    }
  ]

Requesting that ActivityPub URL returns metadata including links to the outbox and inbox (for reading and sending messages) and their public key.

curl -H 'Accept: application/activity+json' 'https://mastodon.social/users/Mastodon'
  • permalink
  • interact from your instance
  • 2 years ago
Powered by microblog.pub and the ActivityPub protocol. Admin.