mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 20:23:49 +01:00
[API] Improve inteligence
This commit is contained in:
parent
4ab9336a2f
commit
9e05b1a0e1
@ -42,7 +42,7 @@ async function byNative(res, rej, me, query, offset, max) {
|
||||
const users = await User
|
||||
.find({
|
||||
$or: [{
|
||||
username_lower: new RegExp(escapedQuery.toLowerCase())
|
||||
username_lower: new RegExp(escapedQuery.replace('@', '').toLowerCase())
|
||||
}, {
|
||||
name: new RegExp(escapedQuery)
|
||||
}]
|
||||
|
Loading…
Reference in New Issue
Block a user