mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-08 07:42:27 +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 {
|
||||
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))
|
||||
for i, v := range postsList.Response {
|
||||
dcs.Data.Comments[i] = commentsDetail{
|
||||
|
||||
Reference in New Issue
Block a user