mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update FixUsernames.php
Should allow to fix registered usernames that are are restricted, even if they are in a different case. Examples : "ADmiN" , "Logout", "Help", "FollowMe"
This commit is contained in:
parent
78a8798ace
commit
37cddf740c
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ class FixUsernames extends Command
|
|||
if($user->is_admin || $user->status == 'deleted') {
|
||||
continue;
|
||||
}
|
||||
if(in_array($user->username, $restricted)) {
|
||||
if(in_array(strtolower($user->username), array_map('strtolower', $restricted))) {
|
||||
$affected->push($user);
|
||||
}
|
||||
$val = str_replace(['-', '_', '.'], '', $user->username);
|
||||
|
|
Loading…
Reference in a new issue