- architecture/: overview, technology stack, auth (OIDC + built-in IndieAuth), syndication (POSSE) rewritten; new database.md, deployment.md and indieweb-protocols.md; legacy stack marked historical - decisions/: reconstructed ADR-060 and ADR-063; 31 status corrections (superseded auth ADRs, proposed -> accepted); INDEX rebuilt - design/: reconstructed the v1.6.0 documents the webmention code cites; reports for 18 v2 releases without a design folder; INDEX rebuilt - projectplan/: BACKLOG rewritten (shipped items removed, open issues from the reviews added); RELEASE.md for v2.0.0-v2.10.1; INDEX - standards/: development setup (uv, tests, DEV_MODE), testing (CI test stage), git and release flow, versioning, coding standards, cookies - README, CLAUDE.md, .env.example (every setting the code reads, with defaults) brought up to date - 137 broken links repaired (old absolute paths, moved files); stale ADR references in code comments corrected (comments only) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2.5 KiB
2.5 KiB
v2.1.0: Crossposting to GoToSocial
Reconstructed on 2026-11-03 from the changelog and git history. Commit
57b02ad. Design: ADR-065.
Summary
Published notes are copied to a GoToSocial (or any Mastodon-API) account;
edits, unpublishing and deletes follow. Replaces Echofeed for this target.
Also fixes three /notes/<slug> (404) links and a nested form.
Changes
migrations/012_add_syndications.sql:syndicationstable, one row per (note, target),UNIQUE(note_id, target):enabled,remote_id,remote_url,state(pending/synced/failed),version,attempts,last_error,next_attempt_at,claimed_until.note_idhas no foreign key so a hard-deleted note's remote post can still be deleted.starpunk/syndication.py(new):MastodonClient: media upload (large variant, caption as alt text), create/update (PUT /api/v1/statuses/:id)/delete status,Idempotency-Keyon create.Target,get_targets(),resolve_targets(),select_targets();note_changed(note_id)marks a note's rows pending.compose_text(): note Markdown + permalink + tags as hashtags, shortened at a word boundary with the link kept.process_due()/_claim()/_reconcile()/_finish()/_fail(): rows claimed atomically (one sender across gunicorn processes),versionkeeps edits made during a send, network/5xx/429 retried with exponential backoff (8 attempts), other 4xx fail at once.SyndicationWorkerthread started increate_app()when a target is configured.
starpunk/notes.py: create/update/delete callsyndication.note_changed.starpunk/micropub.py:mp-syndicate-toselects targets;q=syndicate-toandq=configlist them;Locationheader uses the real permalink.starpunk/routes/admin.py,templates/admin/new.html,edit.html: per-target checkboxes (on by default for new notes), status, last error and a retry button; delete button moved out of the edit form.templates/note.html: synced copies asu-syndicationlinks.starpunk/routes/search.py: result links/note/<slug>.- Config:
GOTOSOCIAL_URL,GOTOSOCIAL_ACCESS_TOKEN(.env.example).
Tests
tests/test_syndication.py (25 tests: composition, target selection,
claim/retry/version handling, delete and edit follow-up, Micropub
mp-syndicate-to); path fixes in Micropub and search tests.
Notes
- Existing notes are never backfilled.
- Echofeed must stop posting to GoToSocial or posts appear twice.
- A remote post deleted by hand is re-created on the next edit.