Skip to content

Commit

Permalink
fix(endpoint-micropub): prevent slug property from being deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Mar 30, 2024
1 parent d78aac8 commit fc3bcfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/endpoint-micropub/lib/post-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
}
Expand Down

0 comments on commit fc3bcfc

Please sign in to comment.