[Glitch] Preserve hashtag casing in web UI hashtag history
Port f9b23a5d62
to glitch-soc
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user