From a8d116b381ec9c28c5da5c8ee39a3699f568130d Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Mon, 10 Sep 2018 06:20:01 -0700 Subject: Speed up search results post selection. (#9380) --- app/post.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'app/post.go') diff --git a/app/post.go b/app/post.go index 30602b392..8cfc6d659 100644 --- a/app/post.go +++ b/app/post.go @@ -705,8 +705,10 @@ func (a *App) SearchPostsInTeam(terms string, userId string, teamId string, isOr return nil, presult.Err } else { for _, p := range presult.Data.([]*model.Post) { - postList.AddPost(p) - postList.AddOrder(p.Id) + if p.DeleteAt == 0 { + postList.AddPost(p) + postList.AddOrder(p.Id) + } } } } -- cgit v1.2.3-1-g7c22