X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=src%2FWorker%2FDirectory.php;h=b66b662d4c8c4432d937d534d42c9098caf343ff;hb=4fe278be7d605810c0bb848d10d48344df186747;hp=7b098bc9480a68e83f5c22fe545e95158ec40cd4;hpb=87673fd0c52b40d1100fd46c648c786bab3750cf;p=friendica.git diff --git a/src/Worker/Directory.php b/src/Worker/Directory.php index 7b098bc948..b66b662d4c 100644 --- a/src/Worker/Directory.php +++ b/src/Worker/Directory.php @@ -1,6 +1,6 @@ get('system', 'directory'); + $dir = Search::getGlobalDirectory(); if (!strlen($dir)) { return; @@ -53,7 +55,7 @@ class Directory Logger::info('Updating directory: ' . $arr['url']); if (strlen($arr['url'])) { - DI::httpClient()->fetch($dir . '?url=' . bin2hex($arr['url'])); + DI::httpClient()->fetch($dir . '?url=' . bin2hex($arr['url']), HttpClientAccept::HTML); } return; @@ -62,7 +64,7 @@ class Directory private static function updateAll() { $users = DBA::select('owner-view', ['url'], ['net-publish' => true, 'account_expired' => false, 'verified' => true]); while ($user = DBA::fetch($users)) { - Worker::add(PRIORITY_LOW, 'Directory', $user['url']); + Worker::add(Worker::PRIORITY_LOW, 'Directory', $user['url']); } DBA::close($users); }