diff options
Diffstat (limited to 'app/post.go')
-rw-r--r-- | app/post.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/post.go b/app/post.go index da4aa506b..78f56a607 100644 --- a/app/post.go +++ b/app/post.go @@ -450,7 +450,7 @@ func SearchPostsInTeam(terms string, userId string, teamId string, isOrSearch bo } } - posts := &model.PostList{} + posts := model.NewPostList() for _, channel := range channels { if result := <-channel; result.Err != nil { return nil, result.Err |