Make hashtag searching independent of case
Этот коммит содержится в:
@@ -629,7 +629,7 @@ func (s SqlPostStore) Search(teamId string, userId string, params *model.SearchP
|
|||||||
if params.IsHashtag {
|
if params.IsHashtag {
|
||||||
searchType = "Hashtags"
|
searchType = "Hashtags"
|
||||||
for _, term := range strings.Split(terms, " ") {
|
for _, term := range strings.Split(terms, " ") {
|
||||||
termMap[term] = true
|
termMap[strings.ToUpper(term)] = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -748,7 +748,7 @@ func (s SqlPostStore) Search(teamId string, userId string, params *model.SearchP
|
|||||||
if searchType == "Hashtags" {
|
if searchType == "Hashtags" {
|
||||||
exactMatch := false
|
exactMatch := false
|
||||||
for _, tag := range strings.Split(p.Hashtags, " ") {
|
for _, tag := range strings.Split(p.Hashtags, " ") {
|
||||||
if termMap[tag] {
|
if termMap[strings.ToUpper(tag)] {
|
||||||
exactMatch = true
|
exactMatch = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user