diff --git a/app/notification_email_test.go b/app/notification_email_test.go index 267694c2a1..7dcf1ff874 100644 --- a/app/notification_email_test.go +++ b/app/notification_email_test.go @@ -27,7 +27,7 @@ func TestGetDirectMessageNotificationEmailSubject(t *testing.T) { CreateAt: 1501804801000, } translateFunc := utils.GetUserTranslations("en") - subject := getDirectMessageNotificationEmailSubject(user, post, translateFunc, "http://localhost:8065", "sender", true) + subject := getDirectMessageNotificationEmailSubject(user, post, translateFunc, "http://localhost:8065", "@sender", true) if !strings.HasPrefix(subject, expectedPrefix) { t.Fatal("Expected subject line prefix '" + expectedPrefix + "', got " + subject) } diff --git a/i18n/en.json b/i18n/en.json index a50018668c..af1be7e046 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -3424,7 +3424,7 @@ }, { "id": "app.notification.subject.direct.full", - "translation": "[{{.SiteName}}] New Direct Message from @{{.SenderDisplayName}} on {{.Month}} {{.Day}}, {{.Year}}" + "translation": "[{{.SiteName}}] New Direct Message from {{.SenderDisplayName}} on {{.Month}} {{.Day}}, {{.Year}}" }, { "id": "app.notification.subject.group_message.full",