summaryrefslogtreecommitdiff
path: root/src/api/endpoints/posts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-12-23 04:21:48 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-12-23 04:21:48 +0900
commit67c269ddf54d43b68c06b8fb2726f72d87600c11 (patch)
tree7db9cacfc2288db72fe46981c7f9e2bead74cad2 /src/api/endpoints/posts
parent#1035 (diff)
downloadsharkey-67c269ddf54d43b68c06b8fb2726f72d87600c11.tar.gz
sharkey-67c269ddf54d43b68c06b8fb2726f72d87600c11.tar.bz2
sharkey-67c269ddf54d43b68c06b8fb2726f72d87600c11.zip
oops
Diffstat (limited to 'src/api/endpoints/posts')
-rw-r--r--src/api/endpoints/posts/search.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/endpoints/posts/search.ts b/src/api/endpoints/posts/search.ts
index 4697e6ed0f..33ef2a0a05 100644
--- a/src/api/endpoints/posts/search.ts
+++ b/src/api/endpoints/posts/search.ts
@@ -100,7 +100,7 @@ async function byNative(res, rej, me, text, userId, following, mute, reply, repo
push({
$and: text.split(' ').map(x => ({
text: x[0] == '-' ? {
- $ne: new RegExp(escapeRegexp(x))
+ $ne: new RegExp(escapeRegexp(x.substr(1)))
} : new RegExp(escapeRegexp(x))
}))
});