We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3073b3 commit 2b3a85dCopy full SHA for 2b3a85d
router/comments.go
@@ -43,7 +43,7 @@ func PostComments(c echo.Context) error {
43
return c.JSON(http.StatusBadRequest, err)
44
}
45
itemInfo := fmt.Sprintf("[%v](https://%v/items/%v)", item.Name, os.Getenv("HOST"), item.ID)
46
- message := fmt.Sprintf("### コメントを投稿しました\n%v\n%v", itemInfo, comment.Text)
+ message := fmt.Sprintf("### @%s がコメントを投稿しました\n%s\n%s", comment.User.Name, itemInfo, comment.Text)
47
_ = PostMessage(c, message, false)
48
return c.JSON(http.StatusCreated, res)
49
0 commit comments