From a9e8e39d342488ec46175997f3df9ab109f2fecf Mon Sep 17 00:00:00 2001 From: "henry.chen" Date: Wed, 4 Jan 2023 23:58:50 +0800 Subject: [PATCH] fix(disqus): failed to commit disqus comments --- pkg/core/eiblog/page/fe.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/core/eiblog/page/fe.go b/pkg/core/eiblog/page/fe.go index 59b6850..c053028 100644 --- a/pkg/core/eiblog/page/fe.go +++ b/pkg/core/eiblog/page/fe.go @@ -274,7 +274,7 @@ func handleDisqusCreate(c *gin.Context) { defer c.JSON(http.StatusOK, resp) msg := c.PostForm("message") - email := c.PostForm("author_name") + email := c.PostForm("author_email") name := c.PostForm("author_name") thread := c.PostForm("thread") identifier := c.PostForm("identifier") @@ -283,7 +283,7 @@ func handleDisqusCreate(c *gin.Context) { resp.ErrMsg = "参数错误" return } - logrus.Info("email: %s comments: %s", email, thread) + logrus.Infof("email: %s comments: %s", email, thread) comment := internal.PostComment{ Message: msg,