From f898837b2534311ae48cdf248f0ff43a95dd2de5 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Mon, 23 Feb 2026 10:58:48 +0100 Subject: [PATCH] fix: remove platform exception in client-side webmention filter Conversations items are now included in build-time rendering via conversationMentions data, so they no longer need a special exception to bypass the timestamp filter. All items (webmention.io and conversations) are now filtered equally by build timestamp. --- js/webmentions.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/webmentions.js b/js/webmentions.js index bd1585f..86d6bd3 100644 --- a/js/webmentions.js +++ b/js/webmentions.js @@ -58,10 +58,9 @@ let mentionsToShow; if (hasBuildTimeSection) { // 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. + // Both webmention.io and conversations items are included at build time, + // so filter all by timestamp (only show items received after the build). mentionsToShow = allChildren.filter((wm) => { - if (wm.platform) return true; const wmTime = new Date(wm['wm-received']).getTime(); return wmTime > buildTime; });