]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/UpdateServerDirectory.php
Don't add contacts when not needed
[friendica.git] / src / Worker / UpdateServerDirectory.php
index e2621073a5e81cc1336c36ec675d06132172c6c5..fd5ee0534ba0edc3a74a4d3d40e01d3a8ea0726a 100644 (file)
@@ -5,14 +5,17 @@
 namespace Friendica\Worker;
 
 use Friendica\Core\Logger;
-use Friendica\Protocol\PortableContact;
+use Friendica\Model\GServer;
 
 class UpdateServerDirectory
 {
-       // Discover the given server id for their contacts
-       public static function execute($gserverid)
+       /**
+        * Query the given server for their users
+        * @param string $gserver Server URL
+        */
+       public static function execute($gserver)
        {
-               PortableContact::discoverSingleServer($gserverid);
+               GServer::updateDirectory($gserver);
                return;
        }
 }