Merge pull request #4110 from pixelfed/staging

Update AdminInviteController
This commit is contained in:
daniel 2023-01-21 08:22:37 -07:00 committed by GitHub
commit d97a5153c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -167,6 +167,9 @@ class AdminInviteController extends Controller
'email' => $request->input('email'),
'password' => Hash::make($request->input('password')),
])));
sleep(5);
$invite->used_by = array_merge($invite->used_by ?? [], [[
'user_id' => $user->id,
'username' => $user->username