aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-04 03:36:32 -0800
committerfriendica <info@friendica.com>2013-01-04 03:36:32 -0800
commit59c23564a040b19d796ce8500c9a40686c793389 (patch)
tree9e257bdabb829776fe1d393617fc37c1840f6f1c /include
parent0b2c85724642eada9f7b5195a829f4533efc5f67 (diff)
downloadvolse-hubzilla-59c23564a040b19d796ce8500c9a40686c793389.tar.gz
volse-hubzilla-59c23564a040b19d796ce8500c9a40686c793389.tar.bz2
volse-hubzilla-59c23564a040b19d796ce8500c9a40686c793389.zip
break delivery loop
Diffstat (limited to 'include')
-rw-r--r--include/notifier.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/notifier.php b/include/notifier.php
index ebb6f7bb5..6a2862ec6 100644
--- a/include/notifier.php
+++ b/include/notifier.php
@@ -225,7 +225,11 @@ function notifier_run($argv, $argc){
$encoded_item = encode_item($target_item);
$relay_to_owner = (((! $top_level_post) && ($target_item['item_flags'] & ITEM_ORIGIN)) ? true : false);
- if($relay_to_owner) {
+
+ // $cmd === 'relay' indicates the owner is sending it to the original recipients
+ // don't allow the item in the relay command to relay to owner under any circumstances, it will loop
+
+ if(($relay_to_owner) && (! $cmd === 'relay')) {
logger('notifier: followup relay', LOGGER_DEBUG);
$recipients = array($parent_item['owner_xchan']);
$private = true;