mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-23 06:32:28 +08:00
fix comments count
This commit is contained in:
4
front.go
4
front.go
@@ -274,9 +274,7 @@ func HandleDisqus(c *gin.Context) {
|
|||||||
if postsList.Cursor.HasNext {
|
if postsList.Cursor.HasNext {
|
||||||
dcs.Data.Next = postsList.Cursor.Next
|
dcs.Data.Next = postsList.Cursor.Next
|
||||||
}
|
}
|
||||||
if cursor == "" {
|
dcs.Data.Total = Ei.MapArticles[slug].Count
|
||||||
dcs.Data.Total = Ei.MapArticles[slug].Count
|
|
||||||
}
|
|
||||||
dcs.Data.Comments = make([]commentsDetail, len(postsList.Response))
|
dcs.Data.Comments = make([]commentsDetail, len(postsList.Response))
|
||||||
for i, v := range postsList.Response {
|
for i, v := range postsList.Response {
|
||||||
dcs.Data.Comments[i] = commentsDetail{
|
dcs.Data.Comments[i] = commentsDetail{
|
||||||
|
|||||||
Reference in New Issue
Block a user