forked from mirror/pixelfed
Fix email verification requests filtering to gracefully handle deleted accounts and accounts already verified
This commit is contained in:
parent
872f5f879b
commit
b57066d15d
1 changed files with 2 additions and 2 deletions
|
@ -560,10 +560,10 @@ trait AdminReportController
|
|||
})
|
||||
->map(function($id) {
|
||||
$user = User::whereProfileId($id)->first();
|
||||
if(!$user) {
|
||||
if(!$user || $user->email_verified_at) {
|
||||
return [];
|
||||
}
|
||||
$account = AccountService::get($id);
|
||||
$account = AccountService::get($id, true);
|
||||
if(!$account) {
|
||||
return [];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue