aboutsummaryrefslogtreecommitdiffstats
path: root/util/wp
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-11-24 20:28:51 -0800
committerfriendica <info@friendica.com>2013-11-24 20:28:51 -0800
commitc63a18a2506778fff37c3e82881e90e24ce545a8 (patch)
tree421dd00e42f2e5a043935b51ec0aaa710a66c9dd /util/wp
parentac3ae83a1646404bcd096891bf5da7b47314cfb3 (diff)
downloadvolse-hubzilla-c63a18a2506778fff37c3e82881e90e24ce545a8.tar.gz
volse-hubzilla-c63a18a2506778fff37c3e82881e90e24ce545a8.tar.bz2
volse-hubzilla-c63a18a2506778fff37c3e82881e90e24ce545a8.zip
Add some message_id meta information for wordpress posts so we'll know where to send comments
Diffstat (limited to 'util/wp')
-rw-r--r--util/wp/post_to_red/post_to_red.php6
1 files changed, 5 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 8e62a1a56..095884007 100644
--- a/util/wp/post_to_red/post_to_red.php
+++ b/util/wp/post_to_red/post_to_red.php
@@ -78,6 +78,10 @@ function post_to_red_post($post_id) {
}
}
+ $message_namespace = 'wordpress';
+
+ $message_id = $site_url() . '/' . $post_id;
+
$message = $post->post_title . "<br /><br />" . $message;
$message .= "<br /><br />permalink: " . $post->guid;
@@ -93,7 +97,7 @@ function post_to_red_post($post_id) {
$headers = array('Authorization' => 'Basic '.base64_encode("$user_name:$password"));
- $body = array('status' => $bbcode,'source' => 'WordPress');
+ $body = array('status' => $bbcode,'source' => 'WordPress', 'namespace' => $message_namespace, 'remote_id' => $message_id);
if($channel)
$body['channel'] = $channel;