Skip to content

Commit 2b3a85d

Browse files
authored
service/booQへのbooQ botのコメントの投稿時、ユーザー名を表示するようにする。 (#504)
*  first commit * コメント投稿時のtraQへの投稿メッセージにコメントしたユーザーの表示名を表示 * displayNameをNameに修正
1 parent e3073b3 commit 2b3a85d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

router/comments.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func PostComments(c echo.Context) error {
4343
return c.JSON(http.StatusBadRequest, err)
4444
}
4545
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)
46+
message := fmt.Sprintf("### @%s がコメントを投稿しました\n%s\n%s", comment.User.Name, itemInfo, comment.Text)
4747
_ = PostMessage(c, message, false)
4848
return c.JSON(http.StatusCreated, res)
4949
}

0 commit comments

Comments
 (0)