mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
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