feat: reply contexts that show the post (v2.19.0)

Replies to Mastodon posts showed only the server's domain: the page has no
h-entry, so nothing was found and the host stood in for the author.

- Context sources in order: Bluesky AppView API, microformats, the
  origin's Mastodon API or this site's GoToSocial instance, OpenGraph
- Migration 024: author_handle, photo, photo_alt, source; rows without a
  source are fetched again once by the webmention worker
- Note page: a card with avatar, name, handle, text, image and date;
  home/tag/likes: "In reply to <author>" with a short quote
- Avatars and images saved locally (CSP allows only this site's images);
  avatar upkeep now covers reply contexts so their avatars aren't removed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
PhilandClaude Opus 5.5 committed 2026-11-13 15:10:46 -07:00
1 parent 22e588377f
commit 62e257e0e0
14 files changed
+1094 -309

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
-- Migration 024: Richer reply contexts (v2.19.0)
-- Fediverse and Bluesky posts have no microformats, so their context now
-- comes from the Mastodon or Bluesky API, or the page's OpenGraph tags.
-- source records which one was used; rows from before have none, and the
-- webmention worker fetches those again once.
ALTER TABLE reply_contexts ADD COLUMN author_handle TEXT;
ALTER TABLE reply_contexts ADD COLUMN photo TEXT;
ALTER TABLE reply_contexts ADD COLUMN photo_alt TEXT;
ALTER TABLE reply_contexts ADD COLUMN source TEXT;