X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fnotifier.php;h=84ed9884aaa85d2eb0ae2bab18f6adbdfc2083f8;hb=bc92b922b45eb8da9d03f4a4d276a0ef706cf3e8;hp=67d5cdbbd869b7181a2b4f4b97913a7159cb2d27;hpb=d6d51e02592d246d6b0e4e23ebfb7b9d030670ff;p=friendica.git diff --git a/include/notifier.php b/include/notifier.php index 67d5cdbbd8..84ed9884aa 100644 --- a/include/notifier.php +++ b/include/notifier.php @@ -3,6 +3,7 @@ require_once("boot.php"); require_once('include/queue_fn.php'); require_once('include/html2plain.php'); require_once("include/Scrape.php"); +require_once('include/diaspora.php'); /* * This file was at one time responsible for doing all deliveries, but this caused @@ -874,8 +875,6 @@ function notifier_run(&$argv, &$argc){ } break; case NETWORK_DIASPORA: - require_once('include/diaspora.php'); - if(get_config('system','dfrn_only') || (! get_config('system','diaspora_enabled'))) break; @@ -958,6 +957,11 @@ function notifier_run(&$argv, &$argc){ if($public_message) { + if (!$followup) + $r0 = diaspora_fetch_relay(); + else + $r0 = array(); + $r1 = q("SELECT DISTINCT(`batch`), `id`, `name`,`network` FROM `contact` WHERE `network` = '%s' AND `uid` = %d AND `rel` != %d group by `batch` ORDER BY rand() ", dbesc(NETWORK_DIASPORA), @@ -974,7 +978,7 @@ function notifier_run(&$argv, &$argc){ intval(CONTACT_IS_SHARING) ); - $r = array_merge($r2,$r1); + $r = array_merge($r2,$r1,$r0); if(count($r)) { logger('pubdeliver: ' . print_r($r,true), LOGGER_DEBUG);