Skip to content

Fediverse and Bluesky

Federating with GoToSocial

GoToSocial is a small, careful neighbour, and the one this server practises with in the federation lab. This page is how to better communicate with it: what it receives from this server and how it shows it, what it sends here, and how this server meets it. It is read from GoToSocial's own code and its federation docs (main at ebb4490, 2026-12-05), and wants reading again when GoToSocial makes a release. Federation is how this server federates in general.

How GoToSocial shows what is sent

Sent from here On GoToSocial
A note, with or without pictures Shown
An Article, a Page or an Event Shown whole, body and all, behind a content warning: GoToSocial takes summary as the warning, or name when there is no summary
A post to somebody there who does not follow its author Shown when it mentions them: GoToSocial keeps people's timelines to those they follow and those who speak to them, so a reply carries a Mention of the person it answers
A post whose object has no to or cc of its own Not shown: GoToSocial reads the audience from the post itself
A quote Shown as a plain post: GoToSocial does not show quotes

With its spam filter on, GoToSocial also holds back a post from somebody not followed when it names five people or more, or carries pictures or links, unless it names somebody the receiver follows.

Signatures

  1. Every request is signed, GETs as much as POSTs: a profile, a post, a collection. Unsigned, only a profile's key (/users/<name>/main-key) and GoToSocial's own server profile are answered; anything else asks for a signature (401).
  2. Draft-cavage only. GoToSocial reads draft-cavage, not RFC 9421; a request signed the newer way is answered 401.
  3. Keys are RSA, one per profile, in publicKey, whose owner is the profile's id. A profile with two keys in publicKey, or a key in assertionMethod only, is one GoToSocial cannot check.
  4. The keyId should be the profile's publicKey.id exactly. GoToSocial keeps keys by that id; a signature naming the key differently has the key fetched again for every request.
  5. A new key goes by Update. GoToSocial keeps the key it first met, and does not take a different one from a later fetch. A pushed Update of the profile, signed with the old key and carrying the new one, is taken.
  6. A sender met for the first time has its key, its server's NodeInfo and its profile fetched before anything it sent is read. While that is happening, or when the key is gone (410), what it sent is answered 202 and not read; it comes through on a later delivery.

What GoToSocial asks of this server

  1. Accept: application/ld+json; profile="https://www.w3.org/ns/activitystreams",application/activity+json.
  2. The answer's type must be application/activity+json, or ld+json with the ActivityStreams profile; charset=utf-8 is the only other parameter allowed. Plain application/json is not read as ActivityPub.
  3. What it sends to the inbox comes as Content-Type: application/ld+json; profile="https://www.w3.org/ns/activitystreams", which the inbox has to take.
  4. Redirects are followed, up to 10, each signed again.
  5. What is fetched is what it says it is. The final address must be the object's id, or one of its urls, and the id, the final address and attributedTo share one host.
  6. @context on everything, of any value: a document without one is not read at all.
  7. Retries. A 5xx or 429 is tried again, up to 5 times, keeping to Retry-After. A whole request has a minute.

Profiles

  1. Needed: @context, a type (Person, Service, Application, Group or Organization), id, preferredUsername, and one RSA publicKey. inbox, outbox, followers and following are read.
  2. Left out means no: manuallyApprovesFollowers, discoverable and indexable are taken as false when they are not there.
  3. Pictures. icon and image are Images with a url. An address alone is not read.
  4. Fields. Up to 6 PropertyValues are shown, and up to 20 alsoKnownAs. featured is read only on the profile's own host.
  5. The handle. Meeting a profile by its address, GoToSocial asks the profile's own host, by WebFinger, for acct:<preferredUsername>@<that host>, and takes the domain in the answer's subject as the handle's. The name in subject must be the one asked for. The answer needs a self link of an ActivityStreams type; host-meta is tried when WebFinger fails.
  6. A shared inbox is used only when it shares at least two parts of its name with the profile's domain (api.example.org with example.org).
  7. An Update of a profile carries the profile written out, whose id is the sender.

Posts

  1. Types kept as posts: Note, Article, Page, Event, Question, Document, Image, Video, Place, Profile and Album. Audio only as an attachment.

  2. Who may see it:

    to and cc hold The post is
    Public in to Public
    Public in cc Unlisted
    The author's followers in to For followers
    The author's followers in cc, without Public Direct
    Neither, people only Direct

    Public may be written in full, as Public or as as:Public. The post itself, not only its Create, carries to or cc.

  3. Mentions by href (the profile's id or url); hashtags as Hashtag with a name of #tag.

  4. The words keep paragraphs, line breaks, headings, quotes, lists, code and inline formatting, and links that are http, https or mailto. There are no pictures (img) and no tables in the words. All HTML is taken out of name.

  5. Attachments: Image, Video, Audio or Document, with url an address or a Link's href. The description is summary, or name. blurhash and focalPoint are read. There is no limit to how many; a file may be up to 40 MiB.

  6. The language is the key of contentMap whose value is the content.

  7. Polls. A Question with oneOf or anyOf, each choice's name and replies.totalItems. A vote is a Note with name and no content, in reply to the poll.

  8. Changes. updated comes after published, and published stays as it was: GoToSocial takes a change to it as a different post and keeps the one it has. An Update of a post GoToSocial does not have is taken as a new post.

  9. Replies are read from replies, with its first page written out and next followed, Mastodon's way.

Who may reply, like and repost

GoToSocial posts carry an interactionPolicy: canLike, canReply and canAnnounce, each with automaticApproval and manualApproval (GoToSocial's own federation docs, interaction_controls.md).

  1. A post whose interactionPolicy leaves a part out (no interactionPolicy at all, or no canLike, say) has that part filled with GoToSocial's default for the post's audience: for a public post, anybody may like, reply and repost.
  2. A like or reply that needs approval is held, and answered later:
    • an Accept whose object is the like or the reply, with target the post and result an authorization's address;
    • or a Reject, and the like or reply is not shown there.
  3. A reply by somebody else to a post closed to them, without a replyAuthorization, is not shown, as its author asked.
  4. GoToSocial's default for a post for followers: replies from its author, their followers and the people it names; reposts by its author only.
  5. Asking first with LikeRequest, ReplyRequest or AnnounceRequest is possible, and not needed.

Follows, likes, reposts and the rest

Activity How GoToSocial receives it
Any An id: an activity without one is answered 202 and not read; nor is a type it does not know
Follow actor the sender, object the person whose inbox it is sent to
Accept, Reject of a follow actor the sender; object the Follow written out, or the address of GoToSocial's own Follow
Undo object written out: an address alone is not understood. For Follow, Like, Block and Announce, with the same actor inside. An undone repost is matched by the Announce's id
Like Of GoToSocial's own posts only; answered 403 where its author's policy does not allow it
Announce (repost) object the post itself, never a Create; to and cc needed
Delete object an address or written out; a post or a profile. The Delete's id on the same host as what it deletes
Update object written out; a post or a profile. The same host rule as Delete
Block object the person whose inbox it is sent to
Flag object holds exactly one profile of that server, and posts; sent to that profile's inbox
Move actor and object the sender, one target, whose alsoKnownAs holds the old profile; one move in 7 days
Add, Remove Not needed: GoToSocial reads featured instead

What GoToSocial sends here

  1. Signatures: draft-cavage, algorithm="hs2019" (RSA and SHA-256).
    • A GET is signed over (request-target) host date.
    • A POST is signed over (request-target) host date digest.
  2. Its keyId is https://<host>/users/<name>/main-key, a path, not a fragment. Fetched unsigned, it gives a short profile whose id is the profile's, not the key's.
  3. A GET answered 401 is signed again once, without its query string. A POST is never signed again.
  4. Its server profile (an Application at /users/<host>) signs some fetches, such as pictures.
  5. No shared inbox: GoToSocial sends to each person's inbox.
  6. A deleted post is a Delete whose object is the post's address. A deleted profile is a Delete whose object is the profile, to its followers.
  7. Its collections of followers, following and posts are read here for their totalItems. Its featured lists posts itself.
  8. NodeInfo. GoToSocial asks /.well-known/nodeinfo for application/json, with a link whose rel begins http://nodeinfo.diaspora.software/ns/schema/2. The document it leads to is application/json, or json with the 2.0 profile; a 2.1 profile is not read. GoToSocial then asks /api/v1/instance, so it learns about this server either way.

How this server meets GoToSocial

What helps GoToSocial This server
Every GET signed ✅
Draft-cavage, never RFC 9421 ✅ httpsig.Sign signs draft-cavage only
One RSA key, the keyId the same as publicKey.id ✅ #main-key both
GoToSocial's /main-key key ids read ✅ (the lab follows and posts both ways)
Answers in the type asked for ✅ activityJSON
@context on everything ✅
WebFinger answered for acct:<name>@<the API's host>, with the handle's domain as subject ✅ isOurDomain takes the API's host too
A reply mentions the person it answers ✅ Note.Answering
to and cc on the post itself ✅
Undo written out; a repost undone by its Announce's id ✅
Delete on the same host as what it deletes ✅
An article read as an article ⬜ its opening goes as summary, so GoToSocial shows the article closed behind it, as a content warning. Mastodon shows that same summary as the article's text, so leaving it out helps here and costs there
Accept and Reject of a like or reply ⬜ read only as answers to a follow or a quote: a reply GoToSocial refuses still shows here
interactionPolicy on posts from here ➖ only canQuote is sent (ap/quote.go). GoToSocial fills canLike, canReply and canAnnounce with its defaults for the post's audience, which for a public post is anybody

From anahitasocial/anahita-services, 2026-12-05.

Written by Claude, reviewed by Rastin Mehr · About this