From 59c23564a040b19d796ce8500c9a40686c793389 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 4 Jan 2013 03:36:32 -0800 Subject: break delivery loop --- include/notifier.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/notifier.php') 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; -- cgit v1.2.3