fix: backfeed whole reply threads and nest them (v2.20.2)

Backfeed only read first-level replies (Threads /replies, GoToSocial
direct replies, Bluesky depth 1) and skipped the owner's own replies, so
conversations under crossposts lost everything after the first reply.

- Threads /conversation, all GoToSocial descendants, Bluesky depth 10
- backfeed.thread_members keeps others' replies to our copy and any reply
  (ours included) to a kept reply; own replies are stored as notified
- Migration 026: webmentions.parent_remote_id; replies render nested as
  comments of comments

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
PhilandClaude Opus 5.5 committed 2026-11-13 20:43:30 -07:00
1 parent 952ca300c0
commit bf6e0fdc0b
11 files changed
+283 -42

No files matched your search

+1 -1
View File
@@ -74,7 +74,7 @@
{% if replies %}
<div class="webmention-group webmention-replies">
<h3>{{ replies|length }} {{ 'Reply' if replies|length == 1 else 'Replies' }}</h3>
{% for wm in replies %}{{ responses.reply(wm) }}{% endfor %}
{% for wm in reply_threads or replies %}{{ responses.reply(wm) }}{% endfor %}
</div>
{% endif %}
+7 -1
View File
@@ -30,7 +30,8 @@
</a></span>
{%- endmacro %}
{# A reply, shown as a comment #}
{# A reply, shown as a comment; replies to it are nested inside, as
comments of the comment (v2.20.2) #}
{% macro reply(wm) %}
<article class="webmention webmention-reply u-comment h-cite">
<div class="webmention-author">{{ author_card(wm) }}</div>
@@ -38,6 +39,11 @@
<div class="e-content">{{ wm.content_snippet|safe }}</div>
{% endif %}
<a class="u-url webmention-date" href="{{ response_url(wm) }}">{{ response_time(wm) }}</a> {{ via(wm) }}
{% if wm.children %}
<div class="webmention-thread">
{% for child in wm.children %}{{ reply(child) }}{% endfor %}
</div>
{% endif %}
</article>
{%- endmacro %}