summaryrefslogtreecommitdiffstats
path: root/app/post.go
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2017-02-16 15:53:04 -0500
committerJoram Wilander <jwawilander@gmail.com>2017-02-16 15:53:04 -0500
commiteadf37ad7ab0c25764f22923bae60ef70daea75f (patch)
treef8566132e6af634d4138fd320a16bc629e600e10 /app/post.go
parent38c42ca53f23898206dce7466a2ec7fba9b61ac1 (diff)
downloadchat-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/post.go')
-rw-r--r--app/post.go2
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