3 * @file src/Worker/UpdateServerDirectories.php
5 namespace Friendica\Worker;
7 use Friendica\Core\Config;
8 use Friendica\Core\Logger;
9 use Friendica\Model\GContact;
10 use Friendica\Model\GServer;
11 use Friendica\Protocol\PortableContact;
13 class UpdateServerDirectories
16 * Query global servers for their users
18 public static function execute()
20 if (Config::get('system', 'poco_discovery') == PortableContact::DISABLED) {
24 // Query Friendica and Hubzilla servers for their users
27 // Query GNU Social servers for their users ("statistics" addon has to be enabled on the GS server)
28 if (!Config::get('system', 'ostatus_disabled')) {
29 GContact::discoverGsUsers();