about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-01-15 14:45:43 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-01-15 14:47:39 +0100
commit7d7a11250c3e1994c12a54f05520657392ca93a7 (patch)
treedaf573dcb08a3c201a1b73de33ea82e902b8c4b4
parent1d5cbfa35680e5780d27a92a136ce3dbdeb90002 (diff)
Fix #427 - don't suggest hashtag if the search value contains a space
-rw-r--r--app/assets/javascripts/components/reducers/search.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/reducers/search.jsx b/app/assets/javascripts/components/reducers/search.jsx
index 9c2041863..d835ef268 100644
--- a/app/assets/javascripts/components/reducers/search.jsx
+++ b/app/assets/javascripts/components/reducers/search.jsx
@@ -23,7 +23,7 @@ const normalizeSuggestions = (state, value, accounts) => {
     }
   ];
 
-  if (value.indexOf('@') === -1) {
+  if (value.indexOf('@') === -1 && value.indexOf(' ') === -1) {
     newSuggestions.push({
       title: 'hashtag',
       items: [