mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-24 16:05:00 +08:00
Ensured getPostsSince route doesn't return a null posts field (#5436)
This commit is contained in:
committed by
Joram Wilander
parent
a7ea2d20cf
commit
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 {
|
||||
|
||||
Reference in New Issue
Block a user