Changing email notifications to use permalinks (#3399)

This commit is contained in:
Christopher Speller
2016-06-28 14:44:37 -04:00
committed by GitHub
parent ed75dfc6c0
commit 422e12c364
2 changed files with 2 additions and 2 deletions

View File

@@ -692,7 +692,7 @@ func sendNotificationEmail(c *Context, post *model.Post, user *model.User, chann
bodyPage := utils.NewHTMLTemplate("post_body", user.Locale) bodyPage := utils.NewHTMLTemplate("post_body", user.Locale)
bodyPage.Props["SiteURL"] = c.GetSiteURL() bodyPage.Props["SiteURL"] = c.GetSiteURL()
bodyPage.Props["PostMessage"] = model.ClearMentionTags(post.Message) bodyPage.Props["PostMessage"] = model.ClearMentionTags(post.Message)
bodyPage.Props["TeamLink"] = teamURL + "/channels/" + channel.Name bodyPage.Props["TeamLink"] = teamURL + "/pl/" + post.Id
bodyPage.Props["BodyText"] = bodyText bodyPage.Props["BodyText"] = bodyText
bodyPage.Props["Button"] = userLocale("api.templates.post_body.button") bodyPage.Props["Button"] = userLocale("api.templates.post_body.button")
bodyPage.Html["Info"] = template.HTML(userLocale("api.templates.post_body.info", bodyPage.Html["Info"] = template.HTML(userLocale("api.templates.post_body.info",

View File

@@ -1429,7 +1429,7 @@
}, },
{ {
"id": "api.templates.post_body.button", "id": "api.templates.post_body.button",
"translation": "Go To Channel" "translation": "Go To Post"
}, },
{ {
"id": "api.templates.post_body.info", "id": "api.templates.post_body.info",