Fixed some flaws
This commit is contained in:
parent
7840524d0f
commit
bfbd28d8d3
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue