diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2017-02-16 15:53:04 -0500 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-02-16 15:53:04 -0500 |
commit | eadf37ad7ab0c25764f22923bae60ef70daea75f (patch) | |
tree | f8566132e6af634d4138fd320a16bc629e600e10 /app | |
parent | 38c42ca53f23898206dce7466a2ec7fba9b61ac1 (diff) | |
download | chat-eadf37ad7ab0c25764f22923bae60ef70daea75f.tar.gz chat-eadf37ad7ab0c25764f22923bae60ef70daea75f.tar.bz2 chat-eadf37ad7ab0c25764f22923bae60ef70daea75f.zip |
Added NewPostList constructor to set fields to be non-null (#5440)
Diffstat (limited to 'app')
-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 |