This commit is contained in:
pezcurrel 2022-12-23 19:13:37 +01:00
parent 96aa6f3aa9
commit 9fabb3853b

View file

@ -515,9 +515,9 @@ if (is_null($oidata)) {
$idata['Dead']=1;
notify('«<a href="viewinst.php?id='.$instid.'">'.$opts['hostname'].'</a>» just died!',2);
}
} else {
}/* else {// disabled since now we insert instances from peerscrawl.php directly
eecho(2,'«'.$opts['hostname'].'»: it exists in Instances table but theres no data about it in InstChecks!'.N);
}
}*/
} else {
$idata['Dead']=$oidata['Dead'];
}
@ -722,7 +722,7 @@ if ($opts['fetchusers'] && $idata['IsMastodon'] && !is_null($idata['Version']) &
foreach ($buf as $user) {
if (make(['id', 'username', 'display_name', 'locked', 'bot', 'discoverable', 'created_at', 'note', 'url', 'avatar', 'header', 'statuses_count', 'last_status_at', 'fields', 'noindex'], $user)) {
eecho(0,'«'.$opts['hostname'].'»: working on user «'.$user['username'].'»...'.N);
// disabled because it takes too long on instances with many users
// disabled because it takes too long on instances with many users; that's why we added "$idata['Version']>='4.0.0'" as a condition to the root "if" statement and "noindex" to the checked keys in the "if" statement above (ver. >= 4.0.0 do report "noindex" for account entities)
/*if (!isset($user['noindex'])) {
$user['noindex']=true;
eecho(0,'«'.$opts['hostname'].'»: «'.$user['username'].'»: «noindex» is undefined, trying to define it by fetching users profile page...'.N);
@ -743,7 +743,7 @@ if ($opts['fetchusers'] && $idata['IsMastodon'] && !is_null($idata['Version']) &
$snote=strip_tags($user['note']);
if (preg_match('/(?<!\w)#(nobots?|noindex)(?!\w)/iu',$snote)===1) $user['noindex']=true;
if (preg_match('/(?<!\w)#(okindex|yesindex|doindex|okmhindex)(?!\w)/iu',$snote)===1) $user['noindex']=false;
// disabled; takes too long on instances with many users
// disabled; see previous comment
/*$user['tags']=[];
if (!$user['noindex'] && !is_null($idata['Version']) && $idata['Version']>='3.3.0') {
eecho(0,'«'.$opts['hostname'].'»: trying to fetch tags for user «'.$user['username'].'»...'.N);