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

+21 -24
View File
@@ -278,30 +278,27 @@ small { display: block; margin-top: var(--spacing-xs); color: var(--color-text-l
/* Webmention Styles (v1.6.0 Phase 5) */
/* Reply Context */
.reply-context {
margin-bottom: var(--spacing-md);
padding: var(--spacing-sm);
border-left: 3px solid var(--color-link);
background: var(--color-bg-alt);
}
.reply-context .reply-label {
font-size: 0.875rem;
color: var(--color-text-light);
display: block;
margin-bottom: var(--spacing-xs);
}
.reply-context blockquote {
margin: 0;
padding: 0;
}
.reply-context .p-content {
font-style: italic;
margin-bottom: var(--spacing-xs);
}
/* Reply Context (card v2.19.0) */
.reply-context { margin-bottom: var(--spacing-md); }
.reply-context .reply-label { display: block; margin-bottom: var(--spacing-xs); font-size: 0.875rem; font-weight: 600; color: var(--color-text-light); }
.reply-card { margin: 0; padding: var(--spacing-sm) var(--spacing-md); border-left: 3px solid var(--color-link); background: var(--color-bg-alt); border-radius: 0 var(--border-radius) var(--border-radius) 0; overflow-wrap: anywhere; }
.reply-author { margin-bottom: var(--spacing-xs); }
.reply-author .h-card { display: flex; align-items: center; gap: var(--spacing-sm); }
.reply-author img, .reply-author .face-initial { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.reply-author .face-initial { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.reply-who { display: flex; flex-wrap: wrap; column-gap: 0.4rem; line-height: 1.3; min-width: 0; }
.reply-who .p-name { font-weight: 600; color: var(--color-text); }
.reply-who a.p-name:hover { color: var(--color-link); }
.reply-handle { font-size: 0.8125rem; color: var(--color-text-light); }
.reply-title { margin: 0 0 var(--spacing-xs); font-weight: 600; }
.reply-content { font-size: 0.9375rem; }
.reply-content p { margin-bottom: var(--spacing-xs); }
.reply-content > :last-child { margin-bottom: 0; }
.reply-photo { display: block; max-width: 100%; max-height: 20rem; width: auto; height: auto; margin-top: var(--spacing-sm); border-radius: var(--border-radius); }
.reply-source { margin-top: var(--spacing-xs); font-size: 0.8125rem; }
.reply-source a { color: var(--color-text-light); }
.reply-source a:hover { color: var(--color-link); }
.reply-quote { display: block; margin-top: 0.15rem; padding-left: var(--spacing-sm); border-left: 2px solid var(--color-border); color: var(--color-text-light); font-style: italic; quotes: none; }
/* Webmentions Section */
.webmentions {