From 0417646b55eb8b1637c740f0c39de649af84e5cd Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Wed, 17 May 2017 11:40:32 +0200 Subject: send syndication URL for twitter likes/reposts likes and reposts the tweet on twitter first, then sends a syndication URL in the micropub endpoint --- lib/helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/helpers.php') diff --git a/lib/helpers.php b/lib/helpers.php index 198534f..f48c986 100644 --- a/lib/helpers.php +++ b/lib/helpers.php @@ -151,7 +151,7 @@ function micropub_post($endpoint, $params, $access_token, $file_path = NULL, $js $multipart->addArray($params); $multipart->addFile($file_prop, $file_path, $mimetype); $post = $multipart->data(); - array_push($httpheaders, 'Content-Type: ' . $multipart->contentType()); + $httpheaders[] = 'Content-Type: ' . $multipart->contentType(); } curl_setopt($ch, CURLOPT_HTTPHEADER, $httpheaders); -- cgit v1.2.3