diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-08-28 13:54:56 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2018-08-28 19:52:28 +0200 |
commit | 3b09597556094440f716fc43b602febf191fbe85 (patch) | |
tree | 714be7d7d4c2505129caa137ea02ad0f7c26c62f /app/javascript/flavours/glitch/reducers/compose.js | |
parent | 24b6811a6ed5c3449b6fd82dc30e5b988b76df99 (diff) |
[Glitch] Preserve hashtag casing in web UI hashtag history
Port f9b23a5d6247445ea5b70b431c934a4bb99213bc to glitch-soc
Diffstat (limited to 'app/javascript/flavours/glitch/reducers/compose.js')
-rw-r--r-- | app/javascript/flavours/glitch/reducers/compose.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/reducers/compose.js b/app/javascript/flavours/glitch/reducers/compose.js index 9c4f11023..594d70ee2 100644 --- a/app/javascript/flavours/glitch/reducers/compose.js +++ b/app/javascript/flavours/glitch/reducers/compose.js @@ -214,7 +214,7 @@ const updateSuggestionTags = (state, token) => { return state.merge({ suggestions: state.get('tagHistory') - .filter(tag => tag.startsWith(prefix)) + .filter(tag => tag.toLowerCase().startsWith(prefix.toLowerCase())) .slice(0, 4) .map(tag => '#' + tag), suggestion_token: token, |