summaryrefslogtreecommitdiffstats
path: root/api/post.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-03-07 07:49:31 -0500
committerJoram Wilander <jwawilander@gmail.com>2016-03-07 07:49:31 -0500
commit0387ac799792fdd0684b863bb029813bbb3eccf7 (patch)
treeab4c38091368145241eb165d3c9cb3ded6a8bef1 /api/post.go
parenta586f5ffbc70c20129521a08d8846a8fd89832c7 (diff)
parent93b8fdc9e4c1c8e074a46a7f96674e812adf36ec (diff)
downloadchat-0387ac799792fdd0684b863bb029813bbb3eccf7.tar.gz
chat-0387ac799792fdd0684b863bb029813bbb3eccf7.tar.bz2
chat-0387ac799792fdd0684b863bb029813bbb3eccf7.zip
Merge pull request #2339 from ZBoxApp/PLT-2218
PLT-2218: Notification email footer is translated based on the sender's language
Diffstat (limited to 'api/post.go')
-rw-r--r--api/post.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/post.go b/api/post.go
index 9d3ba5ab1..e6560a8e8 100644
--- a/api/post.go
+++ b/api/post.go
@@ -604,12 +604,12 @@ func sendNotifications(c *Context, post *model.Post, team *model.Team, channel *
year := fmt.Sprintf("%d", tm.Year())
zone, _ := tm.Zone()
- subjectPage := NewServerTemplatePage("post_subject", c.Locale)
+ subjectPage := NewServerTemplatePage("post_subject", profileMap[id].Locale)
subjectPage.Props["Subject"] = userLocale("api.templates.post_subject",
map[string]interface{}{"SubjectText": subjectText, "TeamDisplayName": team.DisplayName,
"Month": month[:3], "Day": day, "Year": year})
- bodyPage := NewServerTemplatePage("post_body", c.Locale)
+ bodyPage := NewServerTemplatePage("post_body", profileMap[id].Locale)
bodyPage.Props["SiteURL"] = c.GetSiteURL()
bodyPage.Props["PostMessage"] = model.ClearMentionTags(post.Message)
bodyPage.Props["TeamLink"] = teamURL + "/channels/" + channel.Name