summaryrefslogtreecommitdiff
path: root/views/review.php
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2017-03-07 12:51:23 -0800
committerAaron Parecki <aaron@parecki.com>2017-03-07 12:51:23 -0800
commitbd535204e44cb4a6aba3a5df70fe67f436d328a8 (patch)
treeb041ac02b14040fca10f0b08bb231fb36c218f6f /views/review.php
parent974f963d33ab095688d8d4398cfb0790e8d8f3d9 (diff)
fix JSON syntax for reviews
Diffstat (limited to 'views/review.php')
-rw-r--r--views/review.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/review.php b/views/review.php
index dacc797..d364666 100644
--- a/views/review.php
+++ b/views/review.php
@@ -211,7 +211,7 @@ $(function(){
var review = {
item: [{
- type: "h-product",
+ type: ["h-product"],
properties: {
name: [$("#item_name").val()],
url: [$("#item_url").val()]
@@ -232,7 +232,7 @@ $(function(){
$.post("/micropub/postjson", {
data: JSON.stringify({
- "type": "h-review",
+ "type": ["h-review"],
"properties": review
})
}, function(response){