diff options
author | Chris <ccbrown112@gmail.com> | 2018-02-22 18:23:32 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-22 18:23:32 -0600 |
commit | d44ef7ea67324072f3fbf1230c77f0ee0b4ac8bd (patch) | |
tree | 250e6f64e10631d6e0470e57916d82c897fc8b6a /app/notification.go | |
parent | 1b3808f3ecf754876168a9342e18c46d49f32ddf (diff) | |
download | chat-d44ef7ea67324072f3fbf1230c77f0ee0b4ac8bd.tar.gz chat-d44ef7ea67324072f3fbf1230c77f0ee0b4ac8bd.tar.bz2 chat-d44ef7ea67324072f3fbf1230c77f0ee0b4ac8bd.zip |
Remove global site url (#8343)
* remove global site url
* missed one
* revert mysterious change
Diffstat (limited to 'app/notification.go')
-rw-r--r-- | app/notification.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/notification.go b/app/notification.go index 752e4bb12..8cb63fbaf 100644 --- a/app/notification.go +++ b/app/notification.go @@ -362,7 +362,7 @@ func (a *App) sendNotificationEmail(post *model.Post, user *model.User, channel emailNotificationContentsType = *a.Config().EmailSettings.EmailNotificationContentsType } - teamURL := utils.GetSiteURL() + "/" + team.Name + teamURL := a.GetSiteURL() + "/" + team.Name var bodyText = a.getNotificationEmailBody(user, post, channel, senderName, team.Name, teamURL, emailNotificationContentsType, translateFunc) a.Go(func() { @@ -421,7 +421,7 @@ func (a *App) getNotificationEmailBody(recipient *model.User, post *model.Post, bodyPage = a.NewEmailTemplate("post_body_generic", recipient.Locale) } - bodyPage.Props["SiteURL"] = utils.GetSiteURL() + bodyPage.Props["SiteURL"] = a.GetSiteURL() if teamName != "select_team" { bodyPage.Props["TeamLink"] = teamURL + "/pl/" + post.Id } else { |