summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/new-post.php6
1 files changed, 6 insertions, 0 deletions
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"],