summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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({