mirror of
https://github.com/mattermost/mattermost.git
synced 2026-10-24 23:34:52 +08:00
PLT-6057: Fix empty search results with in/from. (#5892)
When search query was empty but in/from was set, search results didn't include posts containing hashtags.
This commit is contained in:
committed by
Corey Hulen
parent
8dde651ded
commit
64f80decaf
@@ -165,7 +165,7 @@ func ParseSearchParams(text string) []*SearchParams {
|
||||
if len(plainTerms) == 0 && len(hashtagTerms) == 0 && (len(inChannels) != 0 || len(fromUsers) != 0) {
|
||||
paramsList = append(paramsList, &SearchParams{
|
||||
Terms: "",
|
||||
IsHashtag: true,
|
||||
IsHashtag: false,
|
||||
InChannels: inChannels,
|
||||
FromUsers: fromUsers,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user