aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-11-03 17:35:42 -0800
committerfriendica <info@friendica.com>2014-11-03 17:35:42 -0800
commita80e696b772d75a6b2bc5c1846f84ba538ee6289 (patch)
tree0878b802590a011550a6db0ae1b81400d568baae /mod/item.php
parentca1df08d92fc05e7301f112faee7a6bbac653aeb (diff)
downloadvolse-hubzilla-a80e696b772d75a6b2bc5c1846f84ba538ee6289.tar.gz
volse-hubzilla-a80e696b772d75a6b2bc5c1846f84ba538ee6289.tar.bz2
volse-hubzilla-a80e696b772d75a6b2bc5c1846f84ba538ee6289.zip
wall posted comment to a top-level wall post which arrived via a route (e.g. was posted to a forum) had no route, hence downstream recipients report route mismatch
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/mod/item.php b/mod/item.php
index 3dea8809c..e7d886b00 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -112,6 +112,7 @@ function item_post(&$a) {
$parent = ((x($_REQUEST,'parent')) ? intval($_REQUEST['parent']) : 0);
$parent_mid = ((x($_REQUEST,'parent_mid')) ? trim($_REQUEST['parent_mid']) : '');
+ $route = '';
$parent_item = null;
$parent_contact = null;
$thr_parent = '';
@@ -163,6 +164,7 @@ function item_post(&$a) {
$thr_parent = $parent_mid;
+ $route = $parent_item['route'];
}
@@ -753,6 +755,7 @@ function item_post(&$a) {
$datarray['comment_policy'] = map_scope($channel['channel_w_comment']);
$datarray['term'] = $post_tags;
$datarray['plink'] = $plink;
+ $datarray['route'] = $route;
// preview mode - prepare the body for display and send it via json