fix: fist comment of disqus error

This commit is contained in:
henry.chen
2023-01-05 13:25:18 +08:00
parent 04289c633e
commit 17792e5a7e
4 changed files with 66 additions and 8 deletions

View File

@@ -301,7 +301,7 @@ func handleAPIPostCreate(c *gin.Context) {
}
// 旧文章
article.ID = cid
artc, _ := cache.Ei.FindArticleByID(article.ID)
artc, _ := cache.Ei.FindArticleByID(article.ID) // cache
if artc != nil {
article.IsDraft = false
article.Count = artc.Count