Add highlight

This commit is contained in:
kolaente 2021-07-29 17:25:03 +02:00
parent 4e507306ea
commit e3825fed2d
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 2 deletions

View File

@ -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() {