<?php
/**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2022, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
namespace Friendica\Worker;
use Friendica\DI;
-use Friendica\Model\GContact;
use Friendica\Model\GServer;
-use Friendica\Protocol\PortableContact;
class UpdateServerDirectories
{
*/
public static function execute()
{
- if (DI::config()->get('system', 'poco_discovery') == PortableContact::DISABLED) {
+ if (!DI::config()->get('system', 'poco_discovery')) {
return;
}
- // Query Friendica and Hubzilla servers for their users
GServer::discover();
-
- // Query GNU Social servers for their users ("statistics" addon has to be enabled on the GS server)
- if (!DI::config()->get('system', 'ostatus_disabled')) {
- GContact::discoverGsUsers();
- }
}
}