Remove @ sign from app.notification.subject.direct.full translation (#11990)
* Remove @ sign from app.notification.subject.direct.full translation * Fix uni test
Этот коммит содержится в:
@@ -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",
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user