Skip to content

Fediverse and Bluesky

Federating with Pixelfed

Pixelfed is a good neighbour on the fediverse: a home for pictures, with its own ways of reading what is sent to it. 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 Pixelfed's own code (its dev branch at 665d9f9cc, 2026-12-05), not from its documentation, and wants reading again when Pixelfed makes a release. Federation is how this server federates in general.

How Pixelfed shows what is sent

Pixelfed is a home for pictures, and shows what belongs there: picture posts and the conversations under them.

Sent from here On Pixelfed
A photo post (a Note with pictures) Shown
A reply to a post Pixelfed has Shown, under that post
A note with no pictures that replies to nothing Not shown: it is not a picture post
An article (Article), an event or anything else that is not a Note Not shown: Pixelfed shows notes
A poll (Question) Shown when Pixelfed fetches it, not when it is sent
A direct note, to people only Kept as a direct message

A new post that is not a reply is kept when its author has a follower on that Pixelfed server, or when its administrator chose to keep everything (store_notes_without_followers). Pixelfed answers every delivery kindly either way, so when somebody asks why a post is not there, these are the first things to look at.

Signatures

  1. What Pixelfed reads: draft-cavage and RFC 9421 (HTTP Message Signatures).
    • For draft-cavage, Date must be within a day either way.
    • For RFC 9421, created may be at most 12 hours old, with an hour of skew. @method and @target-uri must be covered, and on a POST content-digest too.
  2. The signer is the sender. The keyId, the activity's id and its actor must all be on one host. When the object carries an attributedTo, that is on the same host too. The key's owner must be the actor exactly.
  3. Keys. The profile's publicKey.id must be on its own host. Multikeys in assertionMethod are read when controller is the profile's id and the key's id is that id with a fragment.
  4. What Pixelfed signs with: draft-cavage and rsa-sha256 by default. A POST is signed over (request-target) host date digest, a GET over (request-target) host date.
  5. RFC 9421 only after hearing it. Pixelfed switches a host to RFC 9421 once it has had an RFC 9421 signature from that host, and remembers it for 30 days. After a 400 or 401 it tries the other format. A server that signs only draft-cavage is answered in draft-cavage.
  6. Fetches are signed by Pixelfed's own server profile, at /i/actor.

What Pixelfed asks of this server

  1. One Accept header: Accept: application/activity+json, alone. What it asks for has to come back as JSON for that header.
  2. The answer's type must be application/activity+json, or application/ld+json; profile="https://www.w3.org/ns/activitystreams". Those are the types it reads.
  3. Redirects are followed one at a time and each is checked. Only https addresses on public hosts are fetched.
  4. JSON at most 8 levels deep. Pixelfed reads JSON with a depth limit of 8; an activity nested deeper is one it cannot read.

Profiles

  1. Needed: id and inbox, on one host; preferredUsername; and publicKey.publicKeyPem.

  2. The username may hold letters, digits, _, . and - only. A profile whose name holds anything else cannot be shown there.

  3. manuallyApprovesFollowers must be said. Left out, Pixelfed takes the profile to approve its followers, as a private profile does.

  4. Also read: summary, name, icon, indexable (false when left out), endpoints.sharedInbox, outbox, followers and movedTo.

  5. An Update of a profile is taken only when all of these are in it, all on the profile's own host:

    1. id (the same as the actor), url, inbox, outbox, following and followers;
    2. publicKey.id, and publicKey.owner (the same as the actor);
    3. preferredUsername and manuallyApprovesFollowers;
    4. summary and name, which may be null but must be there.

    An icon is an Image whose mediaType is a JPEG, a PNG, a GIF or a WebP. Without any one of these, Pixelfed keeps the profile as it last knew it.

  6. The handle. Pixelfed asks the profile's own host, by WebFinger, for acct:<name>@<that host>. A subject on another domain is taken only when that domain's WebFinger names the same profile id; otherwise the person is shown as @<name>@<that host>.

Posts

  1. Whose a post is. A delivered post is kept as sent only when its attributedTo is exactly the actor (a string, or a list holding a Person with that id), and its id is on the actor's host. Otherwise Pixelfed fetches it by its id.

  2. Who may see it is read from to and cc, and only the full address https://www.w3.org/ns/activitystreams#Public counts; as:Public and Public do not, and make the post one for followers.

    Public is in The post is
    to Public
    cc Unlisted
    Both Unlisted
    Neither, but a followers collection is For followers
    Neither, and people only A direct message
  3. Needed: published and to. A post without to is not shown.

  4. The words are cleaned down to a, p, span and br.

  5. A content warning is sensitive: true with the warning in summary. commentsEnabled: false closes a post to comments.

  6. How a picture was taken (FEP-ee3a, on Pixelfed's newer branch): an attachment's exifData, a list of {name, value}. Only the camera, the lens, the settings, the date and the software are kept: at most 64 items, 128 characters each.

  7. Changes and deletions. An Update of a post is taken from its author only, and replaces its words. A Delete is taken only for a post Pixelfed already has.

Pictures

Pixelfed shows a post's pictures together, so each of them needs to be one it can show, or the post is not shown:

  1. type is Image or Document, or Video where the administrator allows MP4;
  2. url is an address, as a plain string, not a Link object;
  3. mediaType is one the server allows, which unless its administrator changes it is image/jpeg, image/jpg, image/png and image/gif only: a WebP is not among them;
  4. width and height, when given, are each from 1 to 5000;
  5. blurhash, when given, is 6 to 164 characters long.

name is the picture's description.

Follows, likes, reposts and the rest

Activity How Pixelfed receives it
Follow object as an address
Accept object as an address, or the Follow with its id and type; if it also has actor and object, that object is the one accepting
Reject object as the whole Follow, with id, actor and object
Like object as an address only: not a post written out in full. A post for followers takes likes from followers only; a direct one takes none
Announce (repost) object as an address only
Undo object written out, with its type (Announce, Block, Follow or Like); an address alone is not understood. An undone repost is found by its object, so the Announce inside carries the post it reposted
Delete object written out with its id and its type (Tombstone, Person or Story), on the actor's host; an address alone is not understood, except object the same as actor, which deletes the profile
Move object and target as addresses

Pixelfed also receives Flag, Block, Add, View, QuoteRequest (FEP-044f), FeatureRequest, and its own stories (Story:Reaction, Story:Reply).

What Pixelfed sends here

  1. Its posts are Notes with pictures, a location (a Place) when its author placed it, and exifData with how a picture was taken (see Posts going out and Posts coming in).
  2. Its collections of a profile's posts, followers and following give counts only (totalItems), no items.
  3. Followers synchronization (FEP-8fcf): Pixelfed sends the Collection-Synchronization header and serves /users/<name>/followers_synchronization, narrowed to the followers on the asking server.
  4. Quote authorizations (FEP-044f) are at /users/<name>/quote_authorizations/<id>.

How this server meets Pixelfed

What helps Pixelfed This server
Signed draft-cavage over (request-target) host date digest ✅ httpsig.Sign
Pixelfed's own signatures read ✅ draft-cavage, which Pixelfed sends unless it hears RFC 9421 from here
Signed fetches ✅
Ids without a fragment, served where they point ✅ /ap/notes/<uuid>
The full Public address ✅ ap.Public
manuallyApprovesFollowers always said ✅
Like and Announce with an address ✅
Undo of a like with the Like written out ✅
Undo of a repost carrying the post it reposted ✅ NewUndoAnnounce, from activitypub_objects.reposted, kept when the repost went out. A repost sent before 2026-12-05 is undone without it, and stays on Pixelfed
Delete with a Tombstone ✅
A profile Update Pixelfed can receive ➖ summary and name are always said, empty or not; but url is the web app's page, on another host than the profile's id wherever the web app and the API have hosts of their own, so Pixelfed keeps the profile as it last knew it. Left so on 2026-12-05: everywhere else a profile's link leads straight to its page, with no redirect
Pictures in JPEG or PNG Mostly: a picture with something see-through kept as a WebP goes as a WebP, and its post is not shown on a Pixelfed that has not allowed WebP
JSON at most 8 deep ✅
Text notes and articles ➖ Pixelfed is a home for pictures and does not show them: its own choice, and a fair one

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

Written by Claude, reviewed by Rastin Mehr · About this