Ensured getPostsSince route doesn't return a null posts field (#5436)

This commit is contained in:
Harrison Healey
2017-02-15 21:16:42 -05:00
committed by Joram Wilander
parent a7ea2d20cf
commit 677195641a
+2
View File
@@ -584,6 +584,8 @@ func (s SqlPostStore) GetPostsSince(channelId string, time int64, allowFromCache
list := &model.PostList{Order: make([]string, 0, len(posts))}
list.MakeNonNil()
var latestUpdate int64 = 0
for _, p := range posts {