mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 13:33:18 +00:00
Merge pull request #1819 from pixelfed/staging
Update FixUsernames command, skip admin and deleted users
This commit is contained in:
commit
95baffaa4b
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