mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update adminReportController, fix mail verification request 500 bug by changing filter precedence to catch deleted users that may still be cached in AccountService
This commit is contained in:
parent
0a7a061a83
commit
3f322e29d7
1 changed files with 4 additions and 1 deletions
|
@ -528,11 +528,14 @@ trait AdminReportController
|
|||
return !in_array($id, $ignored);
|
||||
})
|
||||
->map(function($id) {
|
||||
$account = AccountService::get($id);
|
||||
$user = User::whereProfileId($id)->first();
|
||||
if(!$user) {
|
||||
return [];
|
||||
}
|
||||
$account = AccountService::get($id);
|
||||
if(!$account) {
|
||||
return [];
|
||||
}
|
||||
$account['email'] = $user->email;
|
||||
return $account;
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue