aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-10-26 02:46:14 -0700
committerzotlabs <mike@macgirvin.com>2016-10-26 02:46:14 -0700
commitc3af36d33b9a08aacecd572ad17fe33362617d23 (patch)
treededc71f2a691325e925effa1b44ba1689571ff35 /Zotlabs
parent3885aa1e8c4aaa8242751673d037c654b6028032 (diff)
downloadvolse-hubzilla-c3af36d33b9a08aacecd572ad17fe33362617d23.tar.gz
volse-hubzilla-c3af36d33b9a08aacecd572ad17fe33362617d23.tar.bz2
volse-hubzilla-c3af36d33b9a08aacecd572ad17fe33362617d23.zip
the logic is much too complicated for the notifier. Let plugins know if they are going upstream or downstream with a simple binary variable.
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Daemon/Notifier.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/Zotlabs/Daemon/Notifier.php b/Zotlabs/Daemon/Notifier.php
index 7b0dfab92..36edbc057 100644
--- a/Zotlabs/Daemon/Notifier.php
+++ b/Zotlabs/Daemon/Notifier.php
@@ -372,12 +372,13 @@ class Notifier {
if(! $encoded_item['flags'])
$encoded_item['flags'] = array();
$encoded_item['flags'][] = 'relay';
+ $upstream = true;
}
else {
logger('notifier: normal distribution', LOGGER_DEBUG);
if($cmd === 'relay')
logger('notifier: owner relay');
-
+ $upstream = false;
// if our parent is a tag_delivery recipient, uplink to the original author causing
// a delivery fork.
@@ -446,6 +447,7 @@ class Notifier {
$narr = array(
'channel' => $channel,
+ 'upstream' => $upstream,
'env_recips' => $env_recips,
'packet_recips' => $packet_recips,
'recipients' => $recipients,
@@ -547,6 +549,7 @@ class Notifier {
$narr = array(
'channel' => $channel,
+ 'upstream' => $upstream,
'env_recips' => $env_recips,
'packet_recips' => $packet_recips,
'recipients' => $recipients,