Task mentions #926

Merged
konrad merged 10 commits from feature/mentions into main 2021-07-29 15:42:50 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit e3825fed2d - Show all commits

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