Infatti
This commit is contained in:
parent
96aa6f3aa9
commit
9fabb3853b
1 changed files with 4 additions and 4 deletions
|
@ -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 there’s 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 user’s 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);
|
||||
|
|
Loading…
Reference in a new issue