diff --git a/web/clitools/getinstinfo.php b/web/clitools/getinstinfo.php index 9275de6..e00c582 100755 --- a/web/clitools/getinstinfo.php +++ b/web/clitools/getinstinfo.php @@ -270,7 +270,6 @@ if ($buf['cont']!==false) { $buf=@json_decode($buf['cont'],true); if (is_array($buf)) { eecho(1,'«'.$opts['hostname'].'»: got nodeinfo data :-)'.N); - $instanswered=true; if (isset($buf['software']['name']) && is_string($buf['software']['name']) && !isempty($buf['software']['name'])) { $idata['Software']=trim($buf['software']['name']); (preg_match('/^'.$mastodons.'/',$idata['Software'])===1) ? $idata['IsMastodon']=true : $idata['IsMastodon']=false; @@ -317,6 +316,7 @@ if ($idata['IsMastodon'] && $idata['Version']>='4.0.0') { if (is_array($buf)) { if (make(['domain', 'title', 'version', 'source_url', 'description', 'usage', 'thumbnail', 'languages', 'configuration', 'registrations', 'contact', 'rules'],$buf)) { eecho(1,'«'.$opts['hostname'].'»: got good instance info from API v2 :-)'.N); + $instanswered=true; if (isset($buf['title']) && is_string($buf['title']) && !isempty($buf['title'])) $idata['Title']=trim($buf['title']); if (isset($buf['description']) && is_string($buf['description']) && !isempty($buf['description']))