diff --git a/packages/endpoint-micropub/lib/post-content.js b/packages/endpoint-micropub/lib/post-content.js index 04627baad..8a7e8e362 100644 --- a/packages/endpoint-micropub/lib/post-content.js +++ b/packages/endpoint-micropub/lib/post-content.js @@ -14,7 +14,13 @@ export const postContent = { fileType: "post", postType: properties["post-type"], }; - const content = await postTemplate(properties); + + // Remove server commands from post template properties + const templateProperties = Object.keys(properties).filter( + (key) => !key.startsWith("mp-"), + ); + + const content = await postTemplate(templateProperties); const message = storeMessageTemplate(metaData); await store.createFile(path, content, { message });