aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/notifier.php6
1 files changed, 6 insertions, 0 deletions
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);