]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/GServer.php
Merge pull request #9146 from tobiasd/2020.09-CHANGELOG
[friendica.git] / src / Model / GServer.php
index aa598a729a0756a6950bf6e0210048983c8fd1f9..323a23f494522749263d46abb5b4d5194311a93d 100644 (file)
@@ -1653,18 +1653,4 @@ class GServer
 
                DI::config()->set('poco', 'last_federation_discovery', time());
        }
-
-       /**
-        * Returns a list of 1,000 active servers order by the last contact
-        *
-        * @return array List of server urls
-        * @throws Exception
-        */
-       public static function getActive()
-       {
-               $result = DBA::p("SELECT `url`, `site_name` AS `displayName`, `network`, `platform`, `version` FROM `gserver`
-                       WHERE `network` IN (?, ?, ?, ?) AND NOT `failed` ORDER BY `last_contact` LIMIT ?",
-                       Protocol::DFRN, Protocol::DIASPORA, Protocol::OSTATUS, Protocol::ACTIVITYPUB, 1000);
-               return DBA::toArray($result);
-       }
 }