Fixed some flaws

This commit is contained in:
pezcurrel 2023-12-27 00:46:49 +01:00
parent 7840524d0f
commit bfbd28d8d3

View file

@ -397,9 +397,11 @@ if ($idata['IsMastodon'] && $idata['Version']>='4.0.0') {
}
} else {
eecho(2,'«'.$opts['hostname'].'»: instance domain blocks fetched from API v1 were not good JSON.'.N);
$idata['Threads']=null;
}
} else {
eecho(2,'«'.$opts['hostname'].'»: could not fetch instance domain blocks from API v1: '.$buf['emsg'].'.'.N);
$idata['Threads']=null;
}
} else {// we still try to fetch instance info from api v1, if ver. < 4.0.0, since it could be a mastodon instance older than 2.1.2, when nodeinfo was introduced
eecho(0,'«'.$opts['hostname'].'»: trying to fetch instance info from API v1...'.N);