diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-05-09 12:00:08 -0400 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-05-09 09:00:08 -0700 |
commit | 07126101d379b900724c7c5cfc82070b42c235d6 (patch) | |
tree | 80b2485b61eb1684cd6127473267af206c3ab1c2 /webapp/client | |
parent | 9e07f4b021b28a3e301359a48cf950298f3e552e (diff) | |
download | chat-07126101d379b900724c7c5cfc82070b42c235d6.tar.gz chat-07126101d379b900724c7c5cfc82070b42c235d6.tar.bz2 chat-07126101d379b900724c7c5cfc82070b42c235d6.zip |
Recent mention searches now OR terms instead of AND (#2931)
Diffstat (limited to 'webapp/client')
-rw-r--r-- | webapp/client/client.jsx | 10 |
1 files changed, 7 insertions, 3 deletions
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'); |