fix(disqus): failed to commit disqus comments

This commit is contained in:
henry.chen
2023-01-04 23:58:50 +08:00
parent c51055a0db
commit a9e8e39d34

View File

@@ -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,