# 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/` (404) links and a nested form. ## Changes - `migrations/012_add_syndications.sql`: `syndications` table, 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_id` has 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-Key` on 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), `version` keeps edits made during a send, network/5xx/429 retried with exponential backoff (8 attempts), other 4xx fail at once. - `SyndicationWorker` thread started in `create_app()` when a target is configured. - `starpunk/notes.py`: create/update/delete call `syndication.note_changed`. - `starpunk/micropub.py`: `mp-syndicate-to` selects targets; `q=syndicate-to` and `q=config` list them; `Location` header 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 as `u-syndication` links. - `starpunk/routes/search.py`: result links `/note/`. - 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.