friendica-github/src/Worker/UpdateServerDirectories.php
2024-08-24 15:27:00 +02:00

26 lines
463 B
PHP

<?php
// Copyright (C) 2010-2024, the Friendica project
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
//
// SPDX-License-Identifier: AGPL-3.0-or-later
namespace Friendica\Worker;
use Friendica\DI;
use Friendica\Model\GServer;
class UpdateServerDirectories
{
/**
* Query global servers for their users
*/
public static function execute()
{
if (!DI::config()->get('system', 'poco_discovery')) {
return;
}
GServer::discover();
}
}