From fc3bcfc740e861785fe3503c12de2edd1df918fe Mon Sep 17 00:00:00 2001 From: Paul Robert Lloyd Date: Fri, 29 Mar 2024 22:48:09 +0000 Subject: [PATCH] fix(endpoint-micropub): prevent slug property from being deleted --- packages/endpoint-micropub/lib/post-data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/endpoint-micropub/lib/post-data.js b/packages/endpoint-micropub/lib/post-data.js index f5e01eb26..8d4cf7890 100644 --- a/packages/endpoint-micropub/lib/post-data.js +++ b/packages/endpoint-micropub/lib/post-data.js @@ -198,7 +198,7 @@ export const postData = { // Delete all properties, except those required for path creation for (const key in _deletedProperties) { - if (!["mp-slug", "post-type", "published", "type", "url"].includes(key)) { + if (!["post-type", "published", "slug", "type", "url"].includes(key)) { delete properties[key]; } }