diff options
author | Aaron Parecki <aaron@parecki.com> | 2017-03-07 12:46:26 -0800 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2017-03-07 12:46:26 -0800 |
commit | 985642236c0644eaf540a60c802763ff936ae244 (patch) | |
tree | 3124ff5cf4862635352028c080ff418d772f9886 /views/new-post.php | |
parent | 9450cd6a176ec8df824b29089e05eb274457bb68 (diff) |
fix JSON syntax on note form
Diffstat (limited to 'views/new-post.php')
-rw-r--r-- | views/new-post.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/views/new-post.php b/views/new-post.php index 69aa855..ab98097 100644 --- a/views/new-post.php +++ b/views/new-post.php @@ -598,15 +598,15 @@ $(function(){ if(v=$("#note_content").val()) { formData.append("content", v); - entry['content'] = v; + entry['content'] = [v]; } if(v=$("#note_in_reply_to").val()) { formData.append("in-reply-to", v); - entry['in-reply-to'] = v; + entry['in-reply-to'] = [v]; } if(v=$("#note_location").val()) { formData.append("location", v); - entry['location'] = v; + entry['location'] = [v]; } if(category.length > 0) { for(var i in category) { @@ -673,7 +673,7 @@ $(function(){ } else { $.post("/micropub/postjson", { data: JSON.stringify({ - "type": "h-entry", + "type": ["h-entry"], "properties": entry }) }, function(response) { |