summaryrefslogtreecommitdiff
path: root/lib/helpers.php
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2017-05-17 11:40:32 +0200
committerAaron Parecki <aaron@parecki.com>2017-05-17 11:40:32 +0200
commit0417646b55eb8b1637c740f0c39de649af84e5cd (patch)
tree0bbe72d7631aa0c013b23822479774161431adbf /lib/helpers.php
parentf08de4043ee6b1a9a4a2282b1ea417f378a82164 (diff)
send syndication URL for twitter likes/reposts
likes and reposts the tweet on twitter first, then sends a syndication URL in the micropub endpoint
Diffstat (limited to 'lib/helpers.php')
-rw-r--r--lib/helpers.php2
1 files changed, 1 insertions, 1 deletions
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);