quote parrent comment in tg notif
This commit is contained in:
@@ -187,10 +187,10 @@ func buildTelegramMessage(req Request) ([]byte, error) {
|
||||
msg += fmt.Sprintf(" -> [%s](%s)", escapeText(req.parent.User.Name), commentURLPrefix+req.parent.ID)
|
||||
}
|
||||
|
||||
msg += fmt.Sprintf("\n\n_%s_", escapeText(req.Comment.Orig))
|
||||
msg += fmt.Sprintf("\n\n%s", escapeText(req.Comment.Orig))
|
||||
|
||||
if req.Comment.ParentID != "" {
|
||||
msg += fmt.Sprintf("\n\n\"_%s_\"", escapeText(req.parent.Orig))
|
||||
msg += fmt.Sprintf("\n\n\"> _%s_\"", escapeText(req.parent.Orig))
|
||||
}
|
||||
|
||||
if req.Comment.PostTitle != "" {
|
||||
|
||||
Reference in New Issue
Block a user