diff options
Diffstat (limited to 'app')
-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) + } } } } |