aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-04-11 15:08:40 -0700
committerfriendica <info@friendica.com>2014-04-11 15:08:40 -0700
commit202582cbd6f66d7d4a23298a7c9d09400a2642ef (patch)
treee38a39e49e97b86fdc3f2cf9d7ac94a07b845a2a
parentdf7c2afc6822c19e8dd7c93eea58efa48d5ca2c3 (diff)
downloadvolse-hubzilla-202582cbd6f66d7d4a23298a7c9d09400a2642ef.tar.gz
volse-hubzilla-202582cbd6f66d7d4a23298a7c9d09400a2642ef.tar.bz2
volse-hubzilla-202582cbd6f66d7d4a23298a7c9d09400a2642ef.zip
we also need a loop breaker
-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);