mirror of
https://github.com/friendica/friendica
synced 2025-04-30 07:04:23 +02:00
Use central function to fetch the global directory
This commit is contained in:
parent
478ee7b6fc
commit
171354181d
13 changed files with 24 additions and 14 deletions
|
@ -22,6 +22,7 @@
|
|||
namespace Friendica\Worker;
|
||||
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Search;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Network\HTTPClient\Client\HttpClientAccept;
|
||||
|
@ -38,7 +39,7 @@ class PullDirectory
|
|||
return;
|
||||
}
|
||||
|
||||
$directory = DI::config()->get('system', 'directory');
|
||||
$directory = Search::getGlobalDirectory();
|
||||
if (empty($directory)) {
|
||||
Logger::info('No directory configured');
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue