diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-01-27 09:28:09 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-01-27 09:28:09 -0500 |
commit | b7606da40f5403896dfbf930837530b4b22abacd (patch) | |
tree | bf75a53ebee6ed60cbe791a3e8c6238b88928b4d /store/sql_post_store.go | |
parent | 18a634a751b2b9b12c90eb581890c85060599180 (diff) | |
parent | c4cca4d41835bb5a2532adb8be05bdd2c97d2544 (diff) | |
download | chat-b7606da40f5403896dfbf930837530b4b22abacd.tar.gz chat-b7606da40f5403896dfbf930837530b4b22abacd.tar.bz2 chat-b7606da40f5403896dfbf930837530b4b22abacd.zip |
Merge pull request #1988 from mattermost/plt-1475
PLT-1475 Update search query to ignore system messages
Diffstat (limited to 'store/sql_post_store.go')
-rw-r--r-- | store/sql_post_store.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/store/sql_post_store.go b/store/sql_post_store.go index a2b18a163..2d5d66e0d 100644 --- a/store/sql_post_store.go +++ b/store/sql_post_store.go @@ -642,6 +642,7 @@ func (s SqlPostStore) Search(teamId string, userId string, params *model.SearchP Posts WHERE DeleteAt = 0 + AND Type NOT LIKE '` + model.POST_SYSTEM_MESSAGE_PREFIX + `%' POST_FILTER AND ChannelId IN ( SELECT |