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
- 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). - Draft-cavage only. GoToSocial reads draft-cavage, not RFC 9421; a request signed the newer way is answered 401.
- Keys are RSA, one per profile, in
publicKey, whoseowneris the profile'sid. A profile with two keys inpublicKey, or a key inassertionMethodonly, is one GoToSocial cannot check. - The
keyIdshould be the profile'spublicKey.idexactly. GoToSocial keeps keys by thatid; a signature naming the key differently has the key fetched again for every request. - 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 pushedUpdateof the profile, signed with the old key and carrying the new one, is taken. - 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
- Accept:
application/ld+json; profile="https://www.w3.org/ns/activitystreams",application/activity+json. - The answer's type must be
application/activity+json, orld+jsonwith the ActivityStreams profile;charset=utf-8is the only other parameter allowed. Plainapplication/jsonis not read as ActivityPub. - 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. - Redirects are followed, up to 10, each signed again.
- What is fetched is what it says it is. The final address must be the
object's
id, or one of itsurls, and theid, the final address andattributedToshare one host. @contexton everything, of any value: a document without one is not read at all.- Retries. A 5xx or 429 is tried again, up to 5 times, keeping to
Retry-After. A whole request has a minute.
Profiles
- Needed:
@context, atype(Person,Service,Application,GrouporOrganization),id,preferredUsername, and one RSApublicKey.inbox,outbox,followersandfollowingare read. - Left out means no:
manuallyApprovesFollowers,discoverableandindexableare taken as false when they are not there. - Pictures.
iconandimageareImages with aurl. An address alone is not read. - Fields. Up to 6
PropertyValues are shown, and up to 20alsoKnownAs.featuredis read only on the profile's own host. - 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'ssubjectas the handle's. The name insubjectmust be the one asked for. The answer needs aselflink of an ActivityStreams type;host-metais tried when WebFinger fails. - A shared inbox is used only when it shares at least two parts of its
name with the profile's domain (
api.example.orgwithexample.org). - An
Updateof a profile carries the profile written out, whoseidis the sender.
Posts
-
Types kept as posts:
Note,Article,Page,Event,Question,Document,Image,Video,Place,ProfileandAlbum.Audioonly as an attachment. -
Who may see it:
toandccholdThe post is Public in toPublic Public in ccUnlisted The author's followersintoFor followers The author's followersincc, without PublicDirect Neither, people only Direct Public may be written in full, as
Publicor asas:Public. The post itself, not only itsCreate, carriestoorcc. -
Mentions by
href(the profile'sidorurl); hashtags asHashtagwith anameof#tag. -
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 ofname. -
Attachments:
Image,Video,AudioorDocument, withurlan address or aLink'shref. The description issummary, orname.blurhashandfocalPointare read. There is no limit to how many; a file may be up to 40 MiB. -
The language is the key of
contentMapwhose value is thecontent. -
Polls. A
QuestionwithoneOforanyOf, each choice'snameandreplies.totalItems. A vote is aNotewithnameand nocontent, in reply to the poll. -
Changes.
updatedcomes afterpublished, andpublishedstays as it was: GoToSocial takes a change to it as a different post and keeps the one it has. AnUpdateof a post GoToSocial does not have is taken as a new post. -
Replies are read from
replies, with itsfirstpage written out andnextfollowed, 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).
- A post whose
interactionPolicyleaves a part out (nointeractionPolicyat all, or nocanLike, say) has that part filled with GoToSocial's default for the post's audience: for a public post, anybody may like, reply and repost. - A like or reply that needs approval is held, and answered later:
- an
Acceptwhoseobjectis the like or the reply, withtargetthe post andresultan authorization's address; - or a
Reject, and the like or reply is not shown there.
- an
- A reply by somebody else to a post closed to them, without a
replyAuthorization, is not shown, as its author asked. - GoToSocial's default for a post for followers: replies from its author, their followers and the people it names; reposts by its author only.
- Asking first with
LikeRequest,ReplyRequestorAnnounceRequestis 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
- 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.
- A GET is signed over
- Its
keyIdishttps://<host>/users/<name>/main-key, a path, not a fragment. Fetched unsigned, it gives a short profile whoseidis the profile's, not the key's. - A GET answered 401 is signed again once, without its query string. A POST is never signed again.
- Its server profile (an
Applicationat/users/<host>) signs some fetches, such as pictures. - No shared inbox: GoToSocial sends to each person's inbox.
- A deleted post is a
Deletewhoseobjectis the post's address. A deleted profile is aDeletewhoseobjectis the profile, to its followers. - Its collections of followers, following and posts are read here for
their
totalItems. Itsfeaturedlists posts itself. - NodeInfo. GoToSocial asks
/.well-known/nodeinfoforapplication/json, with a link whoserelbeginshttp://nodeinfo.diaspora.software/ns/schema/2. The document it leads to isapplication/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