diff options
author | Carlos Tadeu Panato Junior <ctadeu@gmail.com> | 2018-09-10 16:13:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-10 16:13:21 +0200 |
commit | 1f87596e7545cac041ed66e3640ec98bd09f129c (patch) | |
tree | 834a3cfeeda909b11d066084d81ac280d5574a77 /app/post.go | |
parent | 435ce3df4b1671643f5427b8983d6a0fe1e1dc03 (diff) | |
parent | a8d116b381ec9c28c5da5c8ee39a3699f568130d (diff) | |
download | chat-1f87596e7545cac041ed66e3640ec98bd09f129c.tar.gz chat-1f87596e7545cac041ed66e3640ec98bd09f129c.tar.bz2 chat-1f87596e7545cac041ed66e3640ec98bd09f129c.zip |
Merge release-5.3
Diffstat (limited to 'app/post.go')
-rw-r--r-- | app/post.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/post.go b/app/post.go index 86c96926e..114029f44 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) + } } } } |