forked from mirror/pixelfed
Update FixUsernames command, skip admin and deleted users
This commit is contained in:
parent
0cfe0da1df
commit
6583957dc8
1 changed files with 3 additions and 0 deletions
|
@ -48,6 +48,9 @@ class FixUsernames extends Command
|
|||
|
||||
$users = User::chunk(100, function($users) use($affected, $restricted) {
|
||||
foreach($users as $user) {
|
||||
if($user->is_admin || $user->status == 'deleted') {
|
||||
continue;
|
||||
}
|
||||
if(in_array($user->username, $restricted)) {
|
||||
$affected->push($user);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue