mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 20:23:49 +01:00
oops
This commit is contained in:
parent
5ec5ce92f2
commit
2182299393
@ -99,8 +99,9 @@ async function byNative(res, rej, me, text, userId, following, mute, reply, repo
|
||||
if (text) {
|
||||
push({
|
||||
$and: text.split(' ').map(x => ({
|
||||
// キーワードが-で始まる場合そのキーワードを除外する
|
||||
text: x[0] == '-' ? {
|
||||
$ne: new RegExp(escapeRegexp(x.substr(1)))
|
||||
$not: new RegExp(escapeRegexp(x.substr(1)))
|
||||
} : new RegExp(escapeRegexp(x))
|
||||
}))
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user