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;