aboutsummaryrefslogtreecommitdiffstats
path: root/mod
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 /mod
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 'mod')
-rw-r--r--mod/item.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/mod/item.php b/mod/item.php
index 7eebbe287..dba9f01b6 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -58,6 +58,12 @@ function item_post(&$a) {
// If you are unsure, it is prudent (and important) to leave it unset.
$origin = (($api_source && array_key_exists('origin',$_REQUEST)) ? intval($_REQUEST['origin']) : 1);
+
+ // To represent message-ids on other networks - this will create an item_id record
+
+ $namespace = (($api_source && array_key_exists('namespace',$_REQUEST)) ? strip_tags($_REQUEST['namespace']) : '');
+ $remote_id = (($api_source && array_key_exists('remote_id',$_REQUEST)) ? strip_tags($_REQUEST['remote_id']) : '');
+
$owner_hash = null;
$message_id = ((x($_REQUEST,'message_id') && $api_source) ? strip_tags($_REQUEST['message_id']) : '');
@@ -782,6 +788,10 @@ function item_post(&$a) {
$page_type = 'BUILDBLOCK';
elseif($webpage & ITEM_PDL)
$page_type = 'PDL';
+ elseif($namespace && $remote_id) {
+ $page_type = $namespace;
+ $pagetitle = $remote_id;
+ }
if($page_type) {