mirror of
https://github.com/flarum/framework.git
synced 2024-11-30 13:36:10 +08:00
Fix email gambit
This commit is contained in:
parent
68f9baf974
commit
78dafa76c5
|
@ -60,8 +60,6 @@ class EmailGambit extends AbstractRegexGambit
|
|||
|
||||
$email = trim($matches[1], '"');
|
||||
|
||||
$user = $this->users->findByEmail($email);
|
||||
|
||||
$search->getQuery()->where('id', $negate ? '!=' : '=', $user->id);
|
||||
$search->getQuery()->where('email', $negate ? '!=' : '=', $email);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user