summaryrefslogtreecommitdiffstats
path: root/store/sql_post_store.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-01-27 09:28:09 -0500
committerChristopher Speller <crspeller@gmail.com>2016-01-27 09:28:09 -0500
commitb7606da40f5403896dfbf930837530b4b22abacd (patch)
treebf75a53ebee6ed60cbe791a3e8c6238b88928b4d /store/sql_post_store.go
parent18a634a751b2b9b12c90eb581890c85060599180 (diff)
parentc4cca4d41835bb5a2532adb8be05bdd2c97d2544 (diff)
downloadchat-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.go1
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