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

Этот коммит содержится в:
Harrison Healey
2017-02-15 21:16:42 -05:00
коммит произвёл Joram Wilander
родитель a7ea2d20cf
Коммит 677195641a

Просмотреть файл

@@ -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 {