MM-10272: Add a count for pinned posts header icon (#11840)
Этот коммит содержится в:
коммит произвёл
Ben Schumacher
родитель
5a477a617a
Коммит
b9a3c2e90e
@@ -527,7 +527,13 @@ func getChannelStats(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
stats := model.ChannelStats{ChannelId: c.Params.ChannelId, MemberCount: memberCount, GuestCount: guestCount}
|
||||
pinnedPostCount, err := c.App.GetChannelPinnedPostCount(c.Params.ChannelId)
|
||||
if err != nil {
|
||||
c.Err = err
|
||||
return
|
||||
}
|
||||
|
||||
stats := model.ChannelStats{ChannelId: c.Params.ChannelId, MemberCount: memberCount, GuestCount: guestCount, PinnedPostCount: pinnedPostCount}
|
||||
w.Write([]byte(stats.ToJson()))
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user