Docs for phase 3: what gets posted, the publishing plug-ins (step 11)
CI / validate-monitoring (push) Successful in 8s
CI / lint (push) Successful in 16s
CI / federation-interop (push) Successful in 1m8s
CI / test (push) Successful in 2m55s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
CI / notify (push) Successful in 6s

README: the fediverse section now describes what's actually posted
(weekly summaries, milestones) and their settings, instead of pointing
at "still being built"; notes now playing is the one piece left.

federation/README.md: a new Publishing section explains the plug-in
shape (base.py owns idempotent publish/delete/fan-out; each kind -
weekly.py, milestones.py - only decides when to post and what to say),
so adding a third kind later means adding a module, not touching
base.py. Worker tasks and layout tables updated for federation.weekly,
federation.milestones and cli.py. Interop section covers the new post
check.

docs/design/activitypub-phase3.md marked done, following the precedent
from phases 1-2's own docs, with the three points where implementation
diverged from the written plan (the top-10-needs-a-real-top-10 fix,
post_now() as a separate window computation, and post_page_url()
needing the username).

docs/openapi.json unchanged - still current from step 8.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW
This commit is contained in:
mattandClaude Sonnet 5 committed 2026-09-26 16:44:32 +01:00
1 parent 860d4d0f93
commit e0423d04bc
3 files changed
+60 -5

No files matched your search

+9 -2
View File
@@ -92,14 +92,21 @@ Imports run in the background in the `worker` service. The page shows progress,
Unlike live scrobbles, imports keep plays of any age. They still skip rows with no artist or track, and plays dated in the future. Plays already in your history are skipped, so importing again is safe.
## Sharing on the fediverse (in development)
## Sharing on the fediverse
Users can make their profile findable from Mastodon and other fediverse apps as `@name@<your UI host>`, and be followed:
- Follows are accepted automatically, or wait for approval if the user turns that on.
- The **Followers** page lists requests, followers and blocked accounts, with approve, decline, remove, block and unblock.
Posts (weekly summaries, milestones, now playing) are still being built; see `docs/design/activitypub.md`. Federation is tested in CI against a real GoToSocial server (`scripts/interop/run.sh`).
Once someone follows, the **Sharing** page's **What to post** section controls what they see:
- **Weekly summary**: play count and top artist(s), posted once a week (Monday 09:00 in the user's own time zone, for the Monday–Sunday week that just ended). A live preview on the same page shows what it would say so far.
- **Milestones**: total scrobbles, an artist's plays, and a new entry into the all-time top 10 — each posted once, the first time it's reached. History already on file when sharing is turned on, or added by an import, is never posted about retroactively.
Both are on by default and can be switched off independently. Posts use the same visibility as the profile (followers only by default, or unlisted/public); the **Posts** page lists a user's own posts with delete (sends a `Delete` to whoever received it). "Now playing" isn't posted yet; see `docs/design/activitypub.md`.
Federation is tested in CI against a real GoToSocial server (`scripts/interop/run.sh`), including that a posted weekly summary reaches a follower's timeline with the right content and visibility, and disappears from it when deleted.
It's **off unless the server enables it**, and then **off for each user** until they switch it on under **Sharing**. To enable it: