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,
}
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)
}