From 202582cbd6f66d7d4a23298a7c9d09400a2642ef Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 11 Apr 2014 15:08:40 -0700 Subject: we also need a loop breaker --- include/notifier.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/notifier.php') diff --git a/include/notifier.php b/include/notifier.php index 4bf2ac153..5b7f6ddc6 100644 --- a/include/notifier.php +++ b/include/notifier.php @@ -90,6 +90,8 @@ function notifier_run($argv, $argc){ if(! $item_id) return; + $sys = get_sys_channel(); + if($cmd == 'permission_update') { // Get the recipient $r = q("select abook.*, hubloc.* from abook @@ -313,6 +315,10 @@ function notifier_run($argv, $argc){ $top_level_post = false; } + // avoid looping of discover items 12/4/2014 + + if($sys && $parent_item['uid'] == $sys['channel_id']) + return; $encoded_item = encode_item($target_item); -- cgit v1.2.3