This commit is contained in:
syuilo
2017-12-23 04:21:15 +09:00
parent 52ea44394a
commit 8376b10b3b
2 changed files with 9 additions and 1 deletions

View File

@ -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))
}))
});
}