summaryrefslogtreecommitdiffstats
path: root/model/search_params.go
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2017-03-29 16:08:36 +0100
committerCorey Hulen <corey@hulen.com>2017-03-29 08:08:36 -0700
commit64f80decaf4c20c643e43426e3c4285b2d501a90 (patch)
treed213acb15dbbe1d3c571419b529ebb48cf384fa2 /model/search_params.go
parent8dde651ded58a28d29dfc75c2856450c3a9b5be1 (diff)
downloadchat-64f80decaf4c20c643e43426e3c4285b2d501a90.tar.gz
chat-64f80decaf4c20c643e43426e3c4285b2d501a90.tar.bz2
chat-64f80decaf4c20c643e43426e3c4285b2d501a90.zip
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.
Diffstat (limited to 'model/search_params.go')
-rw-r--r--model/search_params.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/model/search_params.go b/model/search_params.go
index 1772c9028..bc604317e 100644
--- a/model/search_params.go
+++ b/model/search_params.go
@@ -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,
})