mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 07:53:08 +02:00
oops
This commit is contained in:
parent
3e343814e3
commit
020ce794af
1 changed files with 2 additions and 1 deletions
|
@ -99,8 +99,9 @@ async function byNative(res, rej, me, text, userId, following, mute, reply, repo
|
||||||
if (text) {
|
if (text) {
|
||||||
push({
|
push({
|
||||||
$and: text.split(' ').map(x => ({
|
$and: text.split(' ').map(x => ({
|
||||||
|
// キーワードが-で始まる場合そのキーワードを除外する
|
||||||
text: x[0] == '-' ? {
|
text: x[0] == '-' ? {
|
||||||
$ne: new RegExp(escapeRegexp(x.substr(1)))
|
$not: new RegExp(escapeRegexp(x.substr(1)))
|
||||||
} : new RegExp(escapeRegexp(x))
|
} : new RegExp(escapeRegexp(x))
|
||||||
}))
|
}))
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue