- 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>
41 lines
1.7 KiB
Markdown
41 lines
1.7 KiB
Markdown
# v2.2.0: Crossposting to Bluesky
|
|
|
|
> Reconstructed on 2026-11-03 from the changelog and git history. Commit `e92c27a`. Design: ADR-066.
|
|
|
|
## Summary
|
|
|
|
A second syndication target, `bluesky`, behind the ADR-065 reconcile loop.
|
|
|
|
## Changes
|
|
|
|
- `starpunk/syndication.py`:
|
|
- `Post`: the note as the clients see it (text, permalink, tags, media).
|
|
Clients share `create` / `update` / `delete` / `can_edit`; the Mastodon
|
|
client was adapted (`_prepare`).
|
|
- `BlueskyClient`: `createSession` with an app password against
|
|
`BLUESKY_SERVICE`, writes to the PDS from the DID document, token
|
|
refresh with fallback to a new session; `upload_blob`; `_record`
|
|
builds the post with facets, images (max 4, alt text, aspect ratio) or a
|
|
link card; `_find_existing` checks recent posts for one linking to the
|
|
note before a retried create (no doubles).
|
|
- `plain_text()` (Markdown rendered and stripped), `bluesky_facets()`
|
|
(link and hashtag facets in UTF-8 byte offsets), `compose_text()` with a
|
|
hashtag budget (at most a third), 300-character limit; `_fit_image()`
|
|
re-encodes images over 1 MB as JPEG.
|
|
- `targets_configured()` so the worker starts for either target.
|
|
- Config: `BLUESKY_HANDLE`, `BLUESKY_APP_PASSWORD`, `BLUESKY_SERVICE`
|
|
(default `https://bsky.social`).
|
|
|
|
## Tests
|
|
|
|
`tests/test_syndication_bluesky.py` (14 tests: facets and byte offsets,
|
|
truncation, image shrinking, session refresh, duplicate check, delete).
|
|
|
|
## Notes
|
|
|
|
- Edits don't follow (`can_edit` false): rewriting the record would break
|
|
likes and replies. Unpublish, untick and delete remove the post.
|
|
- A post deleted by hand on Bluesky is not re-created.
|
|
- `__version_info__` was left at `(2, 1, 0)` from this release until v2.6.0
|
|
(`__version__` was correct).
|