]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/UpdateServerDirectories.php
Merge pull request #12814 from nupplaphil/bug/config_multi_serialize
[friendica.git] / src / Worker / UpdateServerDirectories.php
index 74f75fcd76ff14cb168fcacb4d3843f6a9ede455..a12c0b77b39bd13ada411b5175c4787a85f088f1 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -22,9 +22,7 @@
 namespace Friendica\Worker;
 
 use Friendica\DI;
-use Friendica\Model\GContact;
 use Friendica\Model\GServer;
-use Friendica\Protocol\PortableContact;
 
 class UpdateServerDirectories
 {
@@ -33,16 +31,10 @@ 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();
-               }
        }
 }