aboutsummaryrefslogtreecommitdiffstats
path: root/include/notifier.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-10-13 18:36:28 -0700
committerfriendica <info@friendica.com>2013-10-13 18:36:28 -0700
commitad29d0f9a1eb0be9024f1a296460221107654ff9 (patch)
tree036ff008cf7548f804f0bb4ccc719bebdf6647cf /include/notifier.php
parent3c3c13c63048434b58c99952fa618f7e60a8b2fa (diff)
downloadvolse-hubzilla-ad29d0f9a1eb0be9024f1a296460221107654ff9.tar.gz
volse-hubzilla-ad29d0f9a1eb0be9024f1a296460221107654ff9.tar.bz2
volse-hubzilla-ad29d0f9a1eb0be9024f1a296460221107654ff9.zip
preserve the source owner when creating a delivery fork so that we can uplink back to them without any ambiguity.
Diffstat (limited to 'include/notifier.php')
-rw-r--r--include/notifier.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/notifier.php b/include/notifier.php
index 0c7ac5264..6ea2e71bb 100644
--- a/include/notifier.php
+++ b/include/notifier.php
@@ -325,12 +325,13 @@ function notifier_run($argv, $argc){
// tag_deliver'd post which needs to be sent back to the original author
if(($cmd === 'uplink') && ($parent_item['item_flags'] & ITEM_UPLINK) && (! $top_level_post)) {
- $uplink = true;
+ logger('notifier: uplink');
+ $uplink = true;
}
if(($relay_to_owner || $uplink) && ($cmd !== 'relay')) {
logger('notifier: followup relay', LOGGER_DEBUG);
- $recipients = array(($uplink) ? $parent_item['author_xchan'] : $parent_item['owner_xchan']);
+ $recipients = array(($uplink) ? $parent_item['source_xchan'] : $parent_item['owner_xchan']);
$private = true;
if(! $encoded_item['flags'])
$encoded_item['flags'] = array();