Changing email notifications to use permalinks (#3399)

Этот коммит содержится в:
Christopher Speller
2016-06-28 14:44:37 -04:00
коммит произвёл GitHub
родитель ed75dfc6c0
Коммит 422e12c364
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@@ -692,7 +692,7 @@ func sendNotificationEmail(c *Context, post *model.Post, user *model.User, chann
bodyPage := utils.NewHTMLTemplate("post_body", user.Locale)
bodyPage.Props["SiteURL"] = c.GetSiteURL()
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["Button"] = userLocale("api.templates.post_body.button")
bodyPage.Html["Info"] = template.HTML(userLocale("api.templates.post_body.info",