From c829dc8e71e51e62a2573a262c017bf2472439c4 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 28 Feb 2017 06:26:50 +0000 Subject: [PATCH] The service at gstools.org doesn't exist anymore. --- include/discover_poco.php | 4 ++++ include/socgraph.php | 22 ++++++++++++---------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/include/discover_poco.php b/include/discover_poco.php index 814636878..10c741ae5 100644 --- a/include/discover_poco.php +++ b/include/discover_poco.php @@ -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); diff --git a/include/socgraph.php b/include/socgraph.php index a0dd88df2..0ed209460 100644 --- a/include/socgraph.php +++ b/include/socgraph.php @@ -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/"; + // 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"]); + // $result = z_fetch_url($serverdata); + // if ($result["success"]) { + // $servers = json_decode($result["body"]); - foreach($servers->data AS $server) - poco_check_server($server->instance_address); - } - } + // foreach($servers->data AS $server) + // poco_check_server($server->instance_address); + // } + //} set_config('poco','last_federation_discovery', time()); }