]> git.mxchange.org Git - friendica.git/commitdiff
The service at gstools.org doesn't exist anymore.
authorMichael <heluecht@pirati.ca>
Tue, 28 Feb 2017 06:26:50 +0000 (06:26 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 28 Feb 2017 06:26:50 +0000 (06:26 +0000)
include/discover_poco.php
include/socgraph.php

index 8146368784cb4691aef3711510eb8ebf59434a13..10c741ae5f10aa78b0510ecdc9d2bdfe9567bc14 100644 (file)
@@ -186,6 +186,10 @@ function discover_directory($search) {
  */
 function gs_search_user($search) {
 
+       // Currently disabled, since the service isn't available anymore.
+       // It is not removed since I hope that there will be a successor.
+       return false;
+
        $a = get_app();
 
        $url = "http://gstools.org/api/users_search/".urlencode($search);
index a0dd88df2d5d2b50d118509d4fed626ba0be6a4b..0ed20946062782a918e272135140823dfc993806 100644 (file)
@@ -1244,18 +1244,20 @@ function poco_discover_federation() {
                        poco_check_server("https://".$server->host);
        }
 
-       // Discover GNU Social Servers
-       if (!get_config('system','ostatus_disabled')) {
-               $serverdata = "http://gstools.org/api/get_open_instances/";
-
-               $result = z_fetch_url($serverdata);
-               if ($result["success"]) {
-                       $servers = json_decode($result["body"]);
-
-                       foreach($servers->data AS $server)
-                               poco_check_server($server->instance_address);
-               }
-       }
+       // Currently disabled, since the service isn't available anymore.
+       // It is not removed since I hope that there will be a successor.
+       // Discover GNU Social Servers.
+       //if (!get_config('system','ostatus_disabled')) {
+       //      $serverdata = "http://gstools.org/api/get_open_instances/";
+
+       //      $result = z_fetch_url($serverdata);
+       //      if ($result["success"]) {
+       //              $servers = json_decode($result["body"]);
+
+       //              foreach($servers->data AS $server)
+       //                      poco_check_server($server->instance_address);
+       //      }
+       //}
 
        set_config('poco','last_federation_discovery', time());
 }