From e3825fed2d9dc74dd69289958b905c5960166359 Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 29 Jul 2021 17:25:03 +0200 Subject: [PATCH] Add highlight --- pkg/models/notifications.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/models/notifications.go b/pkg/models/notifications.go index 90e0c3492..2e649ffac 100644 --- a/pkg/models/notifications.go +++ b/pkg/models/notifications.go @@ -77,7 +77,7 @@ func (n *TaskCommentNotification) ToMail() *notifications.Mail { subject := "Re: " + n.Task.Title if n.Mentioned { subject = n.Doer.GetName() + ` mentioned you in a comment in "` + n.Task.Title + `"` - mail.Line(n.Doer.GetName() + " mentioned you in a comment:") + mail.Line("**" + n.Doer.GetName() + "** mentioned you in a comment:") } mail.Subject(subject) @@ -282,7 +282,7 @@ func (n *UserMentionedInTaskNotification) ToMail() *notifications.Mail { mail := notifications.NewMail(). From(n.Doer.GetNameAndFromEmail()). Subject(subject). - Line(n.Doer.GetName() + " mentioned you in a task:") + Line("**" + n.Doer.GetName() + "** mentioned you in a task:") lines := bufio.NewScanner(strings.NewReader(n.Task.Description)) for lines.Scan() {