diff --git a/views/new-post.php b/views/new-post.php index fb0b3fc..f84f231 100644 --- a/views/new-post.php +++ b/views/new-post.php @@ -700,6 +700,12 @@ $(function(){ } request.send(formData); } else { + // Convert all single-value properties to arrays + for(var k in entry) { + if(typeof entry[k] == "string") { + entry[k] = [entry[k]]; + } + } $.post("/micropub/postjson", { data: JSON.stringify({ "type": ["h-entry"],