garage44.eu/jeroen/cartopolis

logclone: git clone https://garage44.eu/jeroen/cartopolis.git

.. /docs/notes/fediverse.md

raw


topic: fediverse triggers: [ActivityPub, fediverse, Mastodon, Lemmy, webfinger, "public posts", "crates/simulator/src/fediverse", posts.rs, community_public, fedi_deliveries, blocklist, "HTTP signatures", fedi_servers, post_votes, post_reports, fedi_gone_accounts, "pages/public", reader_url, post_notices, notices.rs, post_boosts, fedi_server_health, community_posts.rs] updated: 2026-11-10

Public posts and the fediverse

A community can switch on a public half beside its encrypted topics: posts, each with a place, that anybody may read. With them on, the simulator speaks ActivityPub for it. Design: docs/mockups/communities/v4-public-posts.html.

Decisions (2026-10-13, with the user)

Where it lives and why

Speaking Mastodon's and Lemmy's dialects (2026-10-21)

Until then it had been tested only between two Cartopolis servers. What was checked against Lemmy's source (0.19) and changed:

Activity, and closing gaps (2026-11-10)

The live server then had one public community, eight posts and one follower; an audit of the code found the gaps below, and the user asked for all of them.

Things that must stay true

Deploying it

Caddy must send /.well-known/webfinger, /.well-known/host-meta, /.well-known/nodeinfo, /nodeinfo/* and /ap/* to the simulator. Without them, other servers get the web UI's index.html and nothing federates. The live Caddyfile also lists player /api paths one by one rather than /api/* (its comment says why), so /api/communities/*/public, …/posts, …/follows*, …/blocks, …/reports*, /api/posts + /api/posts/* and /api/fediverse/* need adding to its @models matcher, or the app and the web page get a 404 from the file server. /c/* and /@* are web pages and need nothing: the file server answers them with index.html. Federation switches on by itself when public_base_url is a public https origin, which on the live server is https://cartopolis.org. The address of everything is fixed by that origin, so it must not change once anybody follows anything.

Not done