summaryrefslogtreecommitdiffstats
path: root/api/post.go
diff options
context:
space:
mode:
authornickago <ngonella@calpoly.edu>2015-07-28 13:28:18 -0700
committernickago <ngonella@calpoly.edu>2015-07-31 07:57:22 -0700
commitbc48281f7aedabf5cb830a02b5e081b6554115cf (patch)
treea9ee70af5092bb562d8db20098f7ffcea0b0443e /api/post.go
parent144caab578b7f8ba5a59f7acfd2973518eb921ef (diff)
downloadchat-bc48281f7aedabf5cb830a02b5e081b6554115cf.tar.gz
chat-bc48281f7aedabf5cb830a02b5e081b6554115cf.tar.bz2
chat-bc48281f7aedabf5cb830a02b5e081b6554115cf.zip
Changed all templates to use site url instead of team url for finding the 'static' directory
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 f96320639..f6699d181 100644
--- a/api/post.go
+++ b/api/post.go
@@ -377,7 +377,7 @@ 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", teamURL)
+ subjectPage := NewServerTemplatePage("post_subject", siteURL)
subjectPage.Props["TeamDisplayName"] = teamDisplayName
subjectPage.Props["SubjectText"] = subjectText
subjectPage.Props["Month"] = tm.Month().String()[:3]
@@ -395,7 +395,7 @@ func fireAndForgetNotifications(post *model.Post, teamId, siteURL string) {
continue
}
- bodyPage := NewServerTemplatePage("post_body", teamURL)
+ bodyPage := NewServerTemplatePage("post_body", siteURL)
bodyPage.Props["Nickname"] = profileMap[id].FirstName
bodyPage.Props["TeamDisplayName"] = teamDisplayName
bodyPage.Props["ChannelName"] = channelName