X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fsocgraph.php;h=55e0e6fc3a98a560c32573c442707e7c39de878a;hb=33b61ab26283deccb9ecf7f7b28fce7aa27ef2f1;hp=eccde262147de6e19394d9180bbd4b46cac47062;hpb=a583bda5fc2839d0f2e84aa0321471052be7342e;p=friendica.git diff --git a/include/socgraph.php b/include/socgraph.php index eccde26214..55e0e6fc3a 100644 --- a/include/socgraph.php +++ b/include/socgraph.php @@ -1159,11 +1159,11 @@ function poco_check_server($server_url, $network = "", $force = false) { } if (!$failure) { - // Test for Hubzilla, Redmatrix or Friendica + // Test for Hubzilla and Red $serverret = z_fetch_url($server_url."/siteinfo.json"); if ($serverret["success"]) { $data = json_decode($serverret["body"]); - if(isset($data->url)) { + if (isset($data->url)) { $platform = $data->platform; $version = $data->version; $network = NETWORK_DIASPORA; @@ -1181,8 +1181,8 @@ function poco_check_server($server_url, $network = "", $force = false) { $register_policy = REGISTER_CLOSED; break; } - } - else { + } else { + // Test for Hubzilla, Redmatrix or Friendica $serverret = z_fetch_url($server_url."/api/statusnet/config.json"); if ($serverret["success"]) { $data = json_decode($serverret["body"]);