diff --git a/lib/helpers.php b/lib/helpers.php index d5ba67a..b56ec9c 100644 --- a/lib/helpers.php +++ b/lib/helpers.php @@ -88,7 +88,8 @@ function micropub_post($endpoint, $params, $access_token) { 'Authorization: Bearer ' . $access_token )); curl_setopt($ch, CURLOPT_POST, true); - $post = http_build_query(array_merge(array( + $post = http_build_query(array_merge(array(, + 'access_token' => $access_token, 'h' => 'entry' ), $params)); curl_setopt($ch, CURLOPT_POSTFIELDS, $post);