Skip to content

Commit

Permalink
PLT-6057: Fix empty search results with in/from.
Browse files Browse the repository at this point in the history
When search query was empty but in/from was set, search results didn't
include posts containing hashtags.
  • Loading branch information
grundleborg committed Mar 29, 2017
1 parent daca0d9 commit 1e8783a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/search_params.go
Expand Up @@ -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,
})
Expand Down

0 comments on commit 1e8783a

Please sign in to comment.