mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
PLT-5701 Fix DM email subject text (#5630)
This commit is contained in:
@@ -393,7 +393,7 @@ func sendNotificationEmail(post *model.Post, user *model.User, channel *model.Ch
|
||||
senderDisplayName := senderName
|
||||
|
||||
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}
|
||||
} else if channel.Type == model.CHANNEL_GROUP {
|
||||
bodyText = userLocale("api.post.send_notifications_and_forget.mention_body")
|
||||
|
||||
@@ -2161,7 +2161,7 @@
|
||||
},
|
||||
{
|
||||
"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",
|
||||
|
||||
Reference in New Issue
Block a user