mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-02 14:26:28 +02:00
Improve user search
This commit is contained in:
@@ -40,6 +40,7 @@ async function byNative(res, rej, me, query, offset, max) {
|
||||
// Search users
|
||||
const users = await User
|
||||
.find({
|
||||
host: null,
|
||||
$or: [{
|
||||
usernameLower: new RegExp(escapedQuery.replace('@', '').toLowerCase())
|
||||
}, {
|
||||
|
||||
Reference in New Issue
Block a user