From c0b987803307f25efeb8e2afe4aab0538266b630 Mon Sep 17 00:00:00 2001 From: Sven Date: Sat, 21 Mar 2026 20:56:02 +0100 Subject: [PATCH] fix(webmention): silence retry noise for all livefetch versions, bump stale migration to v10 retry patch: regex now matches [patched:livefetch] and [patched:livefetch:vN] so it silently skips for any livefetch version, not just v2. reset-stale: bump to v10 to retry posts stuck during v5 rollout. Co-Authored-By: Claude Opus 4.6 --- scripts/patch-webmention-sender-reset-stale.mjs | 2 +- scripts/patch-webmention-sender-retry.mjs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/patch-webmention-sender-reset-stale.mjs b/scripts/patch-webmention-sender-reset-stale.mjs index 8fa12a62..6ca0e507 100644 --- a/scripts/patch-webmention-sender-reset-stale.mjs +++ b/scripts/patch-webmention-sender-reset-stale.mjs @@ -9,7 +9,7 @@ import { MongoClient } from "mongodb"; import config from "../indiekit.config.mjs"; -const MIGRATION_ID = "webmention-sender-reset-stale-v9"; +const MIGRATION_ID = "webmention-sender-reset-stale-v10"; const mongodbUrl = config.application?.mongodbUrl; if (!mongodbUrl) { diff --git a/scripts/patch-webmention-sender-retry.mjs b/scripts/patch-webmention-sender-retry.mjs index 075a8e23..73575602 100644 --- a/scripts/patch-webmention-sender-retry.mjs +++ b/scripts/patch-webmention-sender-retry.mjs @@ -91,9 +91,9 @@ for (const filePath of candidates) { } if (!source.includes(oldSnippet)) { - // livefetch v2 replaces the same block — this patch is intentionally superseded. - if (source.includes("[patched:livefetch:v2]")) { - continue; // silently skip; livefetch v2 is a superset of this patch + // Any livefetch version replaces the same block — this patch is superseded. + if (/\[patched:livefetch(?::v\d+)?\]/.test(source)) { + continue; // silently skip; livefetch is a superset of this patch } console.log(`[patch] webmention-sender-retry: target snippet not found in ${filePath} (package updated?)`); continue;