From fb794f03c136673378cb8af7c92cc0f307e55f73 Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Tue, 26 Jan 2016 11:51:27 -0500 Subject: Update search query to ignore system messages --- store/sql_post_store.go | 1 + 1 file changed, 1 insertion(+) (limited to 'store/sql_post_store.go') 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 -- cgit v1.2.3-1-g7c22