From 0bd4c7d7dcb91399f1cc859c7bef176d6c7ec960 Mon Sep 17 00:00:00 2001 From: deepzz0 Date: Sun, 27 Nov 2016 20:29:07 +0800 Subject: [PATCH] fix comments count --- front.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/front.go b/front.go index e795915..7a658ba 100644 --- a/front.go +++ b/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{