From c1e9983c6667fe5d25dc58afce5154c2b797a5b6 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Fri, 20 Feb 2026 17:52:07 +0100 Subject: [PATCH] fix: show conversations reactions on individual post pages Conversations items (from Mastodon/Bluesky/ActivityPub) were filtered out by the client-side timestamp check that prevents duplicating build-time webmentions. Since conversations data is never in the build-time cache, bypass the filter for items with a platform field. --- js/webmentions.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/webmentions.js b/js/webmentions.js index 3f69f0f..145840e 100644 --- a/js/webmentions.js +++ b/js/webmentions.js @@ -57,8 +57,11 @@ let mentionsToShow; if (hasBuildTimeSection) { - // Build-time section exists - only show NEW webmentions to avoid duplicates + // Build-time section exists - only show NEW webmentions to avoid duplicates. + // Conversations items (which have a 'platform' field) are never included + // in the build-time cache, so always show them regardless of timestamp. mentionsToShow = allChildren.filter((wm) => { + if (wm.platform) return true; const wmTime = new Date(wm['wm-received']).getTime(); return wmTime > buildTime; });