mirror of
https://github.com/eiblog/eiblog.git
synced 2026-03-01 00:34:58 +08:00
fix(disqus): failed to commit disqus comments
This commit is contained in:
@@ -274,7 +274,7 @@ func handleDisqusCreate(c *gin.Context) {
|
|||||||
defer c.JSON(http.StatusOK, resp)
|
defer c.JSON(http.StatusOK, resp)
|
||||||
|
|
||||||
msg := c.PostForm("message")
|
msg := c.PostForm("message")
|
||||||
email := c.PostForm("author_name")
|
email := c.PostForm("author_email")
|
||||||
name := c.PostForm("author_name")
|
name := c.PostForm("author_name")
|
||||||
thread := c.PostForm("thread")
|
thread := c.PostForm("thread")
|
||||||
identifier := c.PostForm("identifier")
|
identifier := c.PostForm("identifier")
|
||||||
@@ -283,7 +283,7 @@ func handleDisqusCreate(c *gin.Context) {
|
|||||||
resp.ErrMsg = "参数错误"
|
resp.ErrMsg = "参数错误"
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
logrus.Info("email: %s comments: %s", email, thread)
|
logrus.Infof("email: %s comments: %s", email, thread)
|
||||||
|
|
||||||
comment := internal.PostComment{
|
comment := internal.PostComment{
|
||||||
Message: msg,
|
Message: msg,
|
||||||
|
|||||||
Reference in New Issue
Block a user