Docs for phase 4: now playing (step 8)
CI / validate-monitoring (push) Successful in 9s
CI / lint (push) Successful in 12s
CI / federation-interop (push) Successful in 1m41s
CI / test (push) Successful in 3m23s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
CI / notify (push) Successful in 6s

README: the Sharing page's Now playing section, its three modes and
their throttles.

federation/README.md: now_playing.py added to the publishing
plug-ins list (with a note on why it's not quite the same shape as
weekly.py/milestones.py - a periodic scan covering both the profile
push and the opt-in post, rather than an event receiver), actors.py
added to the layout table, and the worker tasks / interop sections
updated for federation.now_playing and the new profile-field check.

docs/design/activitypub-phase4.md marked done, with the two points
where implementation diverged from the written plan (the key-hashing
fix and the now_playing_mode privacy gate).

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

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 17:32:20 +01:00
1 parent 9883111fa1
commit 9f7ada682c
3 files changed
+39 -14

No files matched your search

+8 -2
View File
@@ -104,9 +104,15 @@ Once someone follows, the **Sharing** page's **What to post** section controls w
- **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`.
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).
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.
The Sharing page's **Now playing** section is a separate, three-way choice:
- **Off** (default): nothing shown or posted.
- **Show on my profile**: a "Now playing: *Track* by Artist" field on the profile, refreshed at most every 5 minutes while something's playing and cleared a few minutes after it stops. A `GET` of the profile always shows the truth right now; the push is just so already-following servers don't have to ask.
- **Show on my profile and post**: the profile field, plus a post for each track played 30 seconds or more, at most one every 30 minutes, with the previous now-playing post deleted once the new one is confirmed published.
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, and that turning now playing on updates the field GoToSocial has cached for the profile.
It's **off unless the server enables it**, and then **off for each user** until they switch it on under **Sharing**. To enable it: