From 37a4afa2ffc0b19c21bde62ed1ed0c30b64cf7ee Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 4 Jan 2013 16:28:33 -0800 Subject: fix typo - commited to wrong tree --- include/notifier.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/notifier.php b/include/notifier.php index 6a2862ec6..aff3c5366 100644 --- a/include/notifier.php +++ b/include/notifier.php @@ -281,13 +281,19 @@ function notifier_run($argv, $argc){ // Now we have collected recipients (except for external mentions, FIXME) // Let's reduce this to a set of hubs. + + // for public posts always include our own hub + + $sql_extra = (($private) ? "" : " or hubloc_url = " . z_root() . " "); + $r = q("select distinct(hubloc_callback),hubloc_host,hubloc_sitekey from hubloc - where hubloc_hash in (" . implode(',',$recipients) . ") group by hubloc_callback"); + where hubloc_hash in (" . implode(',',$recipients) . ") $sql_extra group by hubloc_callback"); if(! $r) { logger('notifier: no hubs'); return; } $hubs = $r; + $interval = ((get_config('system','delivery_interval') !== false) ? intval(get_config('system','delivery_interval')) : 2 ); -- cgit v1.2.3