MM-18623 - invalid reply-count displayed (#12364)

* fixed thread creator, fixed default behaviour of fetching posts
* handle reply-count in getPostThread code path
Этот коммит содержится в:
Eli Yukelzon
2019-10-10 17:14:44 +03:00
коммит произвёл GitHub
родитель 1635eb6006
Коммит 34b4bbcb46
6 изменённых файлов: 37 добавлений и 23 удалений

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

@@ -384,8 +384,11 @@ func getPostThread(c *Context, w http.ResponseWriter, r *http.Request) {
if c.Err != nil {
return
}
list, err := c.App.GetPostThread(c.Params.PostId)
skipFetchThreads := false
if r.URL.Query().Get("fetchThreads") == "false" {
skipFetchThreads = true
}
list, err := c.App.GetPostThread(c.Params.PostId, skipFetchThreads)
if err != nil {
c.Err = err
return