From: Aaron Parecki Date: Wed, 22 Mar 2017 18:46:42 +0000 (-0700) Subject: Send "type" as array for JSON requests X-Git-Tag: v0.4.0~9 X-Git-Url: https://git.cweiske.de/shpub.git/commitdiff_plain/313e84422cbe8a873e3922e2bddebc2f875c756f Send "type" as array for JSON requests e.g. `{"type":["h-entry"], ... }` https://www.w3.org/TR/micropub/#json-syntax --- diff --git a/src/shpub/Request.php b/src/shpub/Request.php index 32e25de..8262863 100644 --- a/src/shpub/Request.php +++ b/src/shpub/Request.php @@ -56,7 +56,7 @@ class Request $data['url'] = $this->url; } if ($this->type !== null) { - $data['type'] = 'h-' . $this->type; + $data['type'] = array('h-' . $this->type); } if (count($this->properties)) { $data['properties'] = $this->properties;