diff options
author | friendica <info@friendica.com> | 2013-01-04 16:28:33 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-01-04 16:28:33 -0800 |
commit | 37a4afa2ffc0b19c21bde62ed1ed0c30b64cf7ee (patch) | |
tree | e8f2744df7785dbd3469b2c4062aad95f5cc6c16 | |
parent | cccd9567e4c3acf62ea5cd3cb87be55e29674748 (diff) | |
download | volse-hubzilla-37a4afa2ffc0b19c21bde62ed1ed0c30b64cf7ee.tar.gz volse-hubzilla-37a4afa2ffc0b19c21bde62ed1ed0c30b64cf7ee.tar.bz2 volse-hubzilla-37a4afa2ffc0b19c21bde62ed1ed0c30b64cf7ee.zip |
fix typo - commited to wrong tree
-rw-r--r-- | include/notifier.php | 8 |
1 files changed, 7 insertions, 1 deletions
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 ); |