aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-11-26 16:38:48 -0800
committerfriendica <info@friendica.com>2013-11-26 16:38:48 -0800
commit6f6fcddfc3fc9bb2e63dd615f29116ced49838d5 (patch)
tree9f17a33d6ffce3e2b2167f00729769e792335b62 /util
parent7aa7f0f4eb201627b89c0587185ad72efc7e6606 (diff)
downloadvolse-hubzilla-6f6fcddfc3fc9bb2e63dd615f29116ced49838d5.tar.gz
volse-hubzilla-6f6fcddfc3fc9bb2e63dd615f29116ced49838d5.tar.bz2
volse-hubzilla-6f6fcddfc3fc9bb2e63dd615f29116ced49838d5.zip
api fixes
Diffstat (limited to 'util')
-rw-r--r--util/wp/post_to_red/post_to_red.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/util/wp/post_to_red/post_to_red.php b/util/wp/post_to_red/post_to_red.php
index 00c9b6b73..4c353468c 100644
--- a/util/wp/post_to_red/post_to_red.php
+++ b/util/wp/post_to_red/post_to_red.php
@@ -108,7 +108,7 @@ function post_to_red_post($post_id) {
'source' => 'WordPress',
'namespace' => 'wordpress',
'remote_id' => $message_id,
- 'permalink' => $post->guid;
+ 'permalink' => $post->guid
);
if($channel)
$body['channel'] = $channel;
@@ -117,6 +117,15 @@ function post_to_red_post($post_id) {
$request = new WP_Http;
$result = $request->request($url , array( 'method' => 'POST', 'body' => $body, 'headers' => $headers));
+// if($result['response']['code'] == 200) {
+// $j = json_decode($result['body'],true);
+// if($j && $j['id']) {
+// // store the red id in case we need to delete it in the future.
+//
+// }
+// }
+// logger('post_to_red returns: ' . print_r($result,true));
+
}
}