summaryrefslogtreecommitdiffstats
path: root/app/post.go
diff options
context:
space:
mode:
authorCarlos Tadeu Panato Junior <ctadeu@gmail.com>2018-09-10 16:13:21 +0200
committerGitHub <noreply@github.com>2018-09-10 16:13:21 +0200
commit1f87596e7545cac041ed66e3640ec98bd09f129c (patch)
tree834a3cfeeda909b11d066084d81ac280d5574a77 /app/post.go
parent435ce3df4b1671643f5427b8983d6a0fe1e1dc03 (diff)
parenta8d116b381ec9c28c5da5c8ee39a3699f568130d (diff)
downloadchat-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.go6
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)
+ }
}
}
}