diff --git a/app/email.go b/app/email.go index 896b1f737a..c358b79d74 100644 --- a/app/email.go +++ b/app/email.go @@ -350,7 +350,7 @@ func (es *EmailService) SendInviteEmails(team *model.Team, senderName string, se "TeamDisplayName": team.DisplayName, "SiteName": es.srv.Config().TeamSettings.SiteName}) - bodyPage := es.newEmailTemplate("invite_body", model.DEFAULT_LOCALE) + bodyPage := es.newEmailTemplate("invite_body", "") bodyPage.Props["SiteURL"] = siteURL bodyPage.Props["Title"] = utils.T("api.templates.invite_body.title") bodyPage.Html["Info"] = utils.TranslateAsHtml(utils.T, "api.templates.invite_body.info", @@ -411,7 +411,7 @@ func (es *EmailService) sendGuestInviteEmails(team *model.Team, channels []*mode "TeamDisplayName": team.DisplayName, "SiteName": es.srv.Config().TeamSettings.SiteName}) - bodyPage := es.newEmailTemplate("invite_body", model.DEFAULT_LOCALE) + bodyPage := es.newEmailTemplate("invite_body", "") bodyPage.Props["SiteURL"] = siteURL bodyPage.Props["Title"] = utils.T("api.templates.invite_body.title") bodyPage.Html["Info"] = utils.TranslateAsHtml(utils.T, "api.templates.invite_body_guest.info",