BlueskyClient behind the ADR-065 reconcile loop: plain text with link and hashtag facets, images under 1 MB with alt text, link cards, app-password sessions with refresh. Deletes follow; edits don't (ADR-066). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1.6 KiB
1.6 KiB
ADR-066: Crossposting to Bluesky
Status
Accepted (v2.2.0, 2026-10-31)
Context
ADR-065 added direct crossposting to GoToSocial. Bluesky was still fed by Echofeed, with the same problems: no per-post control, no record of the copy, deletes never follow.
Decision
- Second client, same loop.
BlueskyClientsits behind the reconcile loop andsyndicationstable from ADR-065, as target idbluesky. Clients share a small interface:create,update,delete,can_edit. - Auth. An app password (
BLUESKY_HANDLE,BLUESKY_APP_PASSWORD).createSessionagainstBLUESKY_SERVICE(defaulthttps://bsky.social); writes go to the PDS named in the returned DID document. Expired access tokens are refreshed, falling back to a new session. - Content. Plain text (Markdown rendered and stripped), then the permalink and hashtags (at most a third of the space), shortened to 300 characters at a word boundary. Link and hashtag facets use UTF-8 byte offsets. Images (up to 4) are re-encoded as JPEG if over 1 MB, with alt text and aspect ratio; a note without images gets a link card.
- Edits don't follow. Bluesky has no edit; rewriting the record would break likes and replies, and delete-and-repost would lose them. The post stays as first sent. Unpublish, untick and delete remove it.
- No double posts. When a create is retried, recent posts are checked for one already linking to the note (a send whose reply was lost).
Consequences
- Echofeed is no longer needed; it must stop posting to Bluesky or posts appear twice.
- A post deleted by hand on Bluesky is not re-created.