diff --git a/scripts/patch-webmention-sender-livefetch.mjs b/scripts/patch-webmention-sender-livefetch.mjs index a23cbca8..38508127 100644 --- a/scripts/patch-webmention-sender-livefetch.mjs +++ b/scripts/patch-webmention-sender-livefetch.mjs @@ -49,7 +49,7 @@ const newBlock = ` // [patched:livefetch] Always fetch the live page so t const port = process.env.PORT || "3000"; return \`http://localhost:\${port}\`; })(); - const _publicBase = (process.env.PUBLICATION_URL || process.env.SITE_URL || "").replace(/\\/+$/, ""); + const _publicBase = (process.env.PUBLICATION_URL || process.env.SITE_URL || siteUrl || "").replace(/\\/+$/, ""); const fetchUrl = (_publicBase && postUrl.startsWith(_publicBase)) ? _internalBase + postUrl.slice(_publicBase.length) : postUrl; diff --git a/scripts/patch-webmention-sender-reset-stale.mjs b/scripts/patch-webmention-sender-reset-stale.mjs index 18b2345b..002e6e95 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-v6"; +const MIGRATION_ID = "webmention-sender-reset-stale-v7"; const mongodbUrl = config.application?.mongodbUrl; if (!mongodbUrl) {