Remove @ sign from app.notification.subject.direct.full translation (#11990)

* Remove @ sign from app.notification.subject.direct.full translation

* Fix uni test
Этот коммит содержится в:
Elias Nahum
2019-08-30 11:14:01 +09:00
коммит произвёл GitHub
родитель 0cd3663d91
Коммит d1f0216c22
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@@ -27,7 +27,7 @@ func TestGetDirectMessageNotificationEmailSubject(t *testing.T) {
CreateAt: 1501804801000, CreateAt: 1501804801000,
} }
translateFunc := utils.GetUserTranslations("en") 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) { if !strings.HasPrefix(subject, expectedPrefix) {
t.Fatal("Expected subject line prefix '" + expectedPrefix + "', got " + subject) t.Fatal("Expected subject line prefix '" + expectedPrefix + "', got " + subject)
} }

Просмотреть файл

@@ -3424,7 +3424,7 @@
}, },
{ {
"id": "app.notification.subject.direct.full", "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", "id": "app.notification.subject.group_message.full",