From: Eugen Rochko Date: Sun, 15 Jan 2017 13:45:43 +0000 (+0100) Subject: Fix #427 - don't suggest hashtag if the search value contains a space X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=7d7a11250c3e1994c12a54f05520657392ca93a7;p=mastodon.git Fix #427 - don't suggest hashtag if the search value contains a space --- 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: [