diff options
author | =Corey Hulen <corey@hulen.com> | 2015-09-15 18:59:14 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-09-15 18:59:14 -0700 |
commit | b2a679c25da42c4665059965830858da4f0ec238 (patch) | |
tree | 831b04b0453a67dc291e08e091ffdb497d187922 /api/post.go | |
parent | 788fc4373b8d22930b3420f7906e626e2bd63394 (diff) | |
download | chat-b2a679c25da42c4665059965830858da4f0ec238.tar.gz chat-b2a679c25da42c4665059965830858da4f0ec238.tar.bz2 chat-b2a679c25da42c4665059965830858da4f0ec238.zip |
PLT-93 cleaing up client side configs
Diffstat (limited to 'api/post.go')
-rw-r--r-- | api/post.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/api/post.go b/api/post.go index bd31e0210..005f3f884 100644 --- a/api/post.go +++ b/api/post.go @@ -378,7 +378,8 @@ func fireAndForgetNotifications(post *model.Post, teamId, siteURL string) { location, _ := time.LoadLocation("UTC") tm := time.Unix(post.CreateAt/1000, 0).In(location) - subjectPage := NewServerTemplatePage("post_subject", siteURL) + subjectPage := NewServerTemplatePage("post_subject") + subjectPage.Props["SiteURL"] = siteURL subjectPage.Props["TeamDisplayName"] = teamDisplayName subjectPage.Props["SubjectText"] = subjectText subjectPage.Props["Month"] = tm.Month().String()[:3] @@ -396,7 +397,8 @@ func fireAndForgetNotifications(post *model.Post, teamId, siteURL string) { continue } - bodyPage := NewServerTemplatePage("post_body", siteURL) + bodyPage := NewServerTemplatePage("post_body") + bodyPage.Props["SiteURL"] = siteURL bodyPage.Props["Nickname"] = profileMap[id].FirstName bodyPage.Props["TeamDisplayName"] = teamDisplayName bodyPage.Props["ChannelName"] = channelName |