Get posts for a channel has_next attribute fix (#26901)
* Get posts for a channel has_next attribute fix * HasNext attribute test changes * tests fix --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
468813c04f
Коммит
4999c4a9c6
@@ -677,7 +677,7 @@ func (s *SqlPostStore) getPostWithCollapsedThreads(id, userID string, opts model
|
||||
list.AddPost(p)
|
||||
list.AddOrder(p.Id)
|
||||
}
|
||||
list.HasNext = hasNext
|
||||
list.HasNext = &hasNext
|
||||
|
||||
return list, nil
|
||||
}
|
||||
@@ -828,7 +828,7 @@ func (s *SqlPostStore) Get(ctx context.Context, id string, opts model.GetPostsOp
|
||||
pl.AddPost(p)
|
||||
pl.AddOrder(p.Id)
|
||||
}
|
||||
pl.HasNext = hasNext
|
||||
pl.HasNext = &hasNext
|
||||
}
|
||||
return pl, nil
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user