logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 7d7a11250c3e1994c12a54f05520657392ca93a7
parent: 1d5cbfa35680e5780d27a92a136ce3dbdeb90002
Author: Eugen Rochko <eugen@zeonfederated.com>
Date:   Sun, 15 Jan 2017 14:45:43 +0100

Fix #427 - don't suggest hashtag if the search value contains a space

Diffstat:

Mapp/assets/javascripts/components/reducers/search.jsx2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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: [