]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/UpdateServerDirectory.php
Add license info at Friendica PHP files
[friendica.git] / src / Worker / UpdateServerDirectory.php
index e2621073a5e81cc1336c36ec675d06132172c6c5..87bbee7e8c2be4be96b6da2876fff4d9fd9c51cc 100644 (file)
@@ -1,18 +1,38 @@
 <?php
 /**
- * @file src/Worker/UpdateServerDirectory.php
+ * @copyright Copyright (C) 2020, Friendica
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
+ *
  */
+
 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;
        }
 }