forked from mirror/pixelfed
Merge pull request #2457 from yvisherve/staging
Update FixUsernames.php
This commit is contained in:
commit
576cc82ec5
|
@ -57,7 +57,7 @@ class FixUsernames extends Command
|
||||||
if($user->is_admin || $user->status == 'deleted') {
|
if($user->is_admin || $user->status == 'deleted') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if(in_array($user->username, $restricted)) {
|
if(in_array(strtolower($user->username), array_map('strtolower', $restricted))) {
|
||||||
$affected->push($user);
|
$affected->push($user);
|
||||||
}
|
}
|
||||||
$val = str_replace(['-', '_', '.'], '', $user->username);
|
$val = str_replace(['-', '_', '.'], '', $user->username);
|
||||||
|
|
Loading…
Reference in New Issue