1
0
mirror of https://github.com/funamitech/mastodon synced 2024-11-28 14:58:38 +09:00

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

This commit is contained in:
Eugen Rochko 2017-01-15 14:45:43 +01:00
parent 1d5cbfa356
commit 7d7a11250c

View File

@ -23,7 +23,7 @@ const normalizeSuggestions = (state, value, accounts) => {
} }
]; ];
if (value.indexOf('@') === -1) { if (value.indexOf('@') === -1 && value.indexOf(' ') === -1) {
newSuggestions.push({ newSuggestions.push({
title: 'hashtag', title: 'hashtag',
items: [ items: [