Improve user search
This commit is contained in:
parent
44cd1e9223
commit
d692bb3c52
2 changed files with 16 additions and 3 deletions
|
|
@ -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())
|
||||
}, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue