maintenance: Remove reference to cleanupUsersWithNoId.php

It isn't available anymore, and it wouldn't even make
any change.

Bug: T367129
Change-Id: Ifd926856264aef8f2648cdb983c7710d9f23aa77
(cherry picked from commit e1858da1fa)
This commit is contained in:
Matěj Suchánek 2024-06-12 18:49:10 +02:00 committed by Reedy
parent 1b03f79aa0
commit 8473c0bdbc

View file

@ -144,16 +144,13 @@ class MigrateActorsAF extends LoggedUpdateMaintenance {
foreach ( $rows as $index => $row ) {
$keep[$index] = true;
if ( $row->actor_id === null ) {
// All registered users should have an actor_id already. So
// if we have a usable name here, it means they didn't run
// maintenance/cleanupUsersWithNoId.php
$name = $row->$nameField;
if ( $userNameUtils->isUsable( $name ) ) {
if ( !isset( $complainedAboutUsers[$name] ) ) {
$complainedAboutUsers[$name] = true;
$this->error(
"User name \"$name\" is usable, cannot create an anonymous actor for it."
. " Run maintenance/cleanupUsersWithNoId.php to fix this situation.\n"
. " Your database has likely been corrupted, and may require manual intervention.\n"
);
}
unset( $keep[$index] );