summaryrefslogtreecommitdiffstats
path: root/api/context.go
diff options
context:
space:
mode:
authorThomas Balthazar <tbalthazar@users.noreply.github.com>2016-06-10 13:59:20 +0200
committerJoram Wilander <jwawilander@gmail.com>2016-06-10 07:59:20 -0400
commit252d1c7e9822722e75b52944c8dd58ab3b36ca07 (patch)
treedc2aecce538c35cae7ff5e4bfd885725dd22c5c4 /api/context.go
parentaa61ea0e44d1033ed7925081b8c98c0593bced04 (diff)
downloadchat-252d1c7e9822722e75b52944c8dd58ab3b36ca07.tar.gz
chat-252d1c7e9822722e75b52944c8dd58ab3b36ca07.tar.bz2
chat-252d1c7e9822722e75b52944c8dd58ab3b36ca07.zip
CLI: invite user by email - missing siteURL in email (#3297)
Diffstat (limited to 'api/context.go')
-rw-r--r--api/context.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/context.go b/api/context.go
index 5aa35ad89..798f4dc87 100644
--- a/api/context.go
+++ b/api/context.go
@@ -139,7 +139,7 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
protocol := GetProtocol(r)
- c.setSiteURL(protocol + "://" + r.Host)
+ c.SetSiteURL(protocol + "://" + r.Host)
w.Header().Set(model.HEADER_REQUEST_ID, c.RequestId)
w.Header().Set(model.HEADER_VERSION_ID, fmt.Sprintf("%v.%v", model.CurrentVersion, utils.CfgLastModified))
@@ -417,7 +417,7 @@ func (c *Context) SetTeamURLFromSession() {
}
}
-func (c *Context) setSiteURL(url string) {
+func (c *Context) SetSiteURL(url string) {
c.siteURL = url
}