summaryrefslogtreecommitdiff
path: root/src/api/endpoints/posts
diff options
context:
space:
mode:
authorこぴなたみぽ <syuilotan@yahoo.co.jp>2017-12-21 07:45:45 +0900
committerこぴなたみぽ <syuilotan@yahoo.co.jp>2017-12-21 07:45:45 +0900
commitb2223c19e18ee5884ea13ec0d33f3ddb1ac9ea27 (patch)
treed79afe640229abe6d76ba31480598b082cc8cb3a /src/api/endpoints/posts
parentv3424 (diff)
downloadsharkey-b2223c19e18ee5884ea13ec0d33f3ddb1ac9ea27.tar.gz
sharkey-b2223c19e18ee5884ea13ec0d33f3ddb1ac9ea27.tar.bz2
sharkey-b2223c19e18ee5884ea13ec0d33f3ddb1ac9ea27.zip
Fix bug
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 21e9134d38..a3c44d09ce 100644
--- a/src/api/endpoints/posts/search.ts
+++ b/src/api/endpoints/posts/search.ts
@@ -85,7 +85,7 @@ async function byNative(res, rej, me, text, userId, following, reply, repost, me
$and: []
};
- const push = q.$and.push;
+ const push = x => q.$and.push(x);
if (text) {
push({