]> git.mxchange.org Git - friendica.git/commitdiff
Remove more test data
authorMichael <heluecht@pirati.ca>
Thu, 3 Oct 2019 21:39:48 +0000 (21:39 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 3 Oct 2019 21:39:48 +0000 (21:39 +0000)
src/Model/GServer.php

index 9a224aecd80a878c3866be81c21f44cae929ea37..e665df35c08a03f12dd38c877cbd150a05eaf29c 100644 (file)
@@ -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;
        }