From b8050f817c09ef9e211784468b06083c0a76846b Mon Sep 17 00:00:00 2001 From: Umputun Date: Sun, 4 Jul 2021 00:03:23 -0500 Subject: [PATCH] quote parrent comment in tg notif --- backend/app/notify/telegram.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/notify/telegram.go b/backend/app/notify/telegram.go index 92538081..6da587db 100644 --- a/backend/app/notify/telegram.go +++ b/backend/app/notify/telegram.go @@ -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 != "" {