quote parrent comment in tg notif

This commit is contained in:
Umputun
2021-07-04 00:03:23 -05:00
parent 70245504f5
commit b8050f817c
+2 -2
View File
@@ -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 != "" {