This commit is contained in:
parent
52ea44394a
commit
8376b10b3b
2 changed files with 9 additions and 1 deletions
|
|
@ -99,7 +99,9 @@ async function byNative(res, rej, me, text, userId, following, mute, reply, repo
|
|||
if (text) {
|
||||
push({
|
||||
$and: text.split(' ').map(x => ({
|
||||
text: new RegExp(escapeRegexp(x))
|
||||
text: x[0] == '-' ? {
|
||||
$ne: new RegExp(escapeRegexp(x))
|
||||
} : new RegExp(escapeRegexp(x))
|
||||
}))
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue