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.
This commit is contained in:
Ricardo
2026-02-23 10:58:48 +01:00
parent 1bc6aaa0a5
commit f898837b25

View File

@@ -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;
});