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