PLT-5701 Fix DM email subject text (#5630)
Этот коммит содержится в:
коммит произвёл
George Goldberg
родитель
4fd6b909af
Коммит
511e9272da
@@ -393,7 +393,7 @@ func sendNotificationEmail(post *model.Post, user *model.User, channel *model.Ch
|
|||||||
senderDisplayName := senderName
|
senderDisplayName := senderName
|
||||||
|
|
||||||
mailTemplate = "api.templates.post_subject_in_direct_message"
|
mailTemplate = "api.templates.post_subject_in_direct_message"
|
||||||
mailParameters = map[string]interface{}{"SubjectText": subjectText, "TeamDisplayName": team.DisplayName,
|
mailParameters = map[string]interface{}{"SubjectText": subjectText,
|
||||||
"SenderDisplayName": senderDisplayName, "Month": month, "Day": day, "Year": year}
|
"SenderDisplayName": senderDisplayName, "Month": month, "Day": day, "Year": year}
|
||||||
} else if channel.Type == model.CHANNEL_GROUP {
|
} else if channel.Type == model.CHANNEL_GROUP {
|
||||||
bodyText = userLocale("api.post.send_notifications_and_forget.mention_body")
|
bodyText = userLocale("api.post.send_notifications_and_forget.mention_body")
|
||||||
|
|||||||
@@ -2161,7 +2161,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "api.templates.post_subject_in_direct_message",
|
"id": "api.templates.post_subject_in_direct_message",
|
||||||
"translation": "{{.SubjectText}} in {{.TeamDisplayName}} from {{.SenderDisplayName}} on {{.Month}} {{.Day}}, {{.Year}}"
|
"translation": "{{.SubjectText}} from {{.SenderDisplayName}} on {{.Month}} {{.Day}}, {{.Year}}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "api.templates.channel_name.group",
|
"id": "api.templates.channel_name.group",
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user