<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Edge case when backfilling topics]]></title><description><![CDATA[<p dir="auto">When it comes to backfilling topics, NodeBB utilises what is called "context collection backfill" instead of reply-chain traversal. In a nutshell, instead of crawling up and down the reply tree one-by-one — kind of like what Mastodon does currently — it checks for a canonical source-of-truth in the <code>context</code> property.</p>
<p dir="auto">NodeBB supports both strategies, since not all objects contain <code>context</code>.</p>
<p dir="auto">I found a fun little edge case where if I start a topic, a reply is received, and that reply points to my instance, it won't catch any replies made in between.</p>
<p dir="auto">In other words:</p>
<pre><code>localA starts topic → remoteB replies → remoteC replies to B only → remoteB replies to C and A
</code></pre>
<p dir="auto">In this scenario, because my instance <code>A</code> is left out of the third activity, I don't know about it. When the fourth activity appears, the context is checked, <code>C</code>'s reply isn't in it, and I proceed without knowing about it. Oops!</p>
<p dir="auto">In this case, when incoming replies reference a context that is same-origin to your own instance, you <em>should not</em> use context collection backfill, because:</p>
<ol>
<li>You already have the entire context, so it's unnecessarily duplication of work</li>
<li>You won't catch any replies made out-of-band unless you do reply-tree traversal</li>
</ol>
<p dir="auto">Tagging <a href="https://activitypub.space/user/silverpill%40mitra.social" target="_blank" rel="noopener noreferrer">@silverpill@mitra.social</a> because this is related to <a href="https://w3id.org/fep/f228" target="_blank" rel="noopener noreferrer">FEP f228</a>.</p>
]]></description><link>https://forum.pierobosio.it/topic/f9856fcc-e0e4-4d15-8eaf-db55c71dc7d9/edge-case-when-backfilling-topics</link><generator>RSS for Node</generator><lastBuildDate>Mon, 23 Nov 2026 00:24:03 GMT</lastBuildDate><atom:link href="https://forum.pierobosio.it/topic/f9856fcc-e0e4-4d15-8eaf-db55c71dc7d9.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 29 Jul 2026 14:22:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Edge case when backfilling topics on Wed, 29 Jul 2026 14:28:42 GMT]]></title><description><![CDATA[<p dir="auto">I see two reasons this could happen:</p>
<ol>
<li>C's server or client software doesn't know how to include the <code>context</code></li>
<li>C intentionally wanted to remove their reply to B from the <code>context</code>. It's a semi-private aside.</li>
</ol>
<p dir="auto">I think you'd want to backfill in case 1 but not in case 2. But I don't think there's an easy way to tell which is which.</p>
]]></description><link>https://forum.pierobosio.it/post/https://activitypub.space/post/2141</link><guid isPermaLink="true">https://forum.pierobosio.it/post/https://activitypub.space/post/2141</guid><dc:creator><![CDATA[evan@activitypub.space]]></dc:creator><pubDate>Wed, 29 Jul 2026 14:28:42 GMT</pubDate></item></channel></rss>