From bd535204e44cb4a6aba3a5df70fe67f436d328a8 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Tue, 7 Mar 2017 12:51:23 -0800 Subject: fix JSON syntax for reviews --- views/review.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'views/review.php') 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){ -- cgit v1.2.3