diff options
author | friendica <info@friendica.com> | 2014-11-03 17:35:42 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-11-03 17:35:42 -0800 |
commit | a80e696b772d75a6b2bc5c1846f84ba538ee6289 (patch) | |
tree | 0878b802590a011550a6db0ae1b81400d568baae /mod/item.php | |
parent | ca1df08d92fc05e7301f112faee7a6bbac653aeb (diff) | |
download | volse-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.php | 3 |
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 |