From 07126101d379b900724c7c5cfc82070b42c235d6 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Mon, 9 May 2016 12:00:08 -0400 Subject: Recent mention searches now OR terms instead of AND (#2931) --- webapp/client/client.jsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'webapp/client') diff --git a/webapp/client/client.jsx b/webapp/client/client.jsx index 9bcbeed4e..5d0dd07c9 100644 --- a/webapp/client/client.jsx +++ b/webapp/client/client.jsx @@ -1267,13 +1267,17 @@ export default class Client { this.track('api', 'api_posts_delete'); } - search = (terms, success, error) => { + search = (terms, isOrSearch, success, error) => { + const data = {}; + data.terms = terms; + data.is_or_search = isOrSearch; + request. - get(`${this.getTeamNeededRoute()}/posts/search`). + post(`${this.getTeamNeededRoute()}/posts/search`). set(this.defaultHeaders). type('application/json'). accept('application/json'). - query({terms}). + send(data). end(this.handleResponse.bind(this, 'search', success, error)); this.track('api', 'api_posts_search'); -- cgit v1.2.3-1-g7c22