From: Michael Date: Thu, 3 Oct 2019 21:39:48 +0000 (+0000) Subject: Remove more test data X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=200908032710835c60bbbfb207d511a912c8354a;p=friendica.git Remove more test data --- diff --git a/src/Model/GServer.php b/src/Model/GServer.php index 9a224aecd8..e665df35c0 100644 --- a/src/Model/GServer.php +++ b/src/Model/GServer.php @@ -33,9 +33,6 @@ class GServer */ public static function detect($url) { - /// @Todo: - // - Pleroma version number - $serverdata = []; // When a nodeinfo is present, we don't need to dig further @@ -136,8 +133,6 @@ class GServer $ret = DBA::update('gserver', $serverdata, ['nurl' => $serverdata['nurl']]); } - print_r($serverdata); - return $ret; } @@ -563,7 +558,6 @@ class GServer if (!empty($serverdata['version']) && preg_match('/.*?\(compatible;\s(.*)\s(.*)\)/ism', $serverdata['version'], $matches)) { $serverdata['platform'] = $matches[1]; $serverdata['version'] = $matches[2]; -print_r($serverdata); } if (!empty($serverdata['version']) && strstr($serverdata['version'], 'Pleroma')) { @@ -764,7 +758,7 @@ print_r($serverdata); continue; } } -//print_r($attr); + if ($attr['name'] == 'description') { $serverdata['info'] = $attr['content']; } @@ -814,7 +808,6 @@ print_r($serverdata); continue; } } -//print_r($attr); if ($attr['property'] == 'og:site_name') { $serverdata['site_name'] = $attr['content']; @@ -859,9 +852,6 @@ print_r($serverdata); $serverdata['platform'] = 'friendica'; $serverdata['network'] = $network = Protocol::DFRN; $serverdata['version'] = $curlResult->getHeader('x-friendica-version'); - - } else { -//print_r($curlResult->getHeaderArray()); } return $serverdata; }