mirror of
https://github.com/flarum/core.git
synced 2025-05-06 15:35:38 +02:00
Fix email gambit
This commit is contained in:
parent
55a09a2f57
commit
0aa74c987c
@ -60,8 +60,6 @@ class EmailGambit extends AbstractRegexGambit
|
|||||||
|
|
||||||
$email = trim($matches[1], '"');
|
$email = trim($matches[1], '"');
|
||||||
|
|
||||||
$user = $this->users->findByEmail($email);
|
$search->getQuery()->where('email', $negate ? '!=' : '=', $email);
|
||||||
|
|
||||||
$search->getQuery()->where('id', $negate ? '!=' : '=', $user->id);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user