fix typo - commited to wrong tree
This commit is contained in:
parent
cccd9567e4
commit
37a4afa2ff
@ -281,13 +281,19 @@ function notifier_run($argv, $argc){
|
|||||||
// Now we have collected recipients (except for external mentions, FIXME)
|
// Now we have collected recipients (except for external mentions, FIXME)
|
||||||
// Let's reduce this to a set of hubs.
|
// 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
|
$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) {
|
if(! $r) {
|
||||||
logger('notifier: no hubs');
|
logger('notifier: no hubs');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$hubs = $r;
|
$hubs = $r;
|
||||||
|
|
||||||
|
|
||||||
$interval = ((get_config('system','delivery_interval') !== false)
|
$interval = ((get_config('system','delivery_interval') !== false)
|
||||||
? intval(get_config('system','delivery_interval')) : 2 );
|
? intval(get_config('system','delivery_interval')) : 2 );
|
||||||
|
Reference in New Issue
Block a user