summaryrefslogtreecommitdiffstats
path: root/mattermost.go
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-11-21 12:16:17 -0300
committerCorey Hulen <corey@hulen.com>2016-11-21 07:16:17 -0800
commit6e8647aaf198eda1999737d5537a84449ef31687 (patch)
treef3086e0498c90a16d3aca720fe1610c5c561dba0 /mattermost.go
parentf6f0b89a851fcbe1dcf8d5de77c880f333ab2c74 (diff)
downloadchat-6e8647aaf198eda1999737d5537a84449ef31687.tar.gz
chat-6e8647aaf198eda1999737d5537a84449ef31687.tar.bz2
chat-6e8647aaf198eda1999737d5537a84449ef31687.zip
Fix CLI join team site url (#4605)
Diffstat (limited to 'mattermost.go')
-rw-r--r--mattermost.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/mattermost.go b/mattermost.go
index 50427450a..c4c2ae560 100644
--- a/mattermost.go
+++ b/mattermost.go
@@ -1499,6 +1499,11 @@ func getMockContext() *api.Context {
c.IpAddress = "cmd_line"
c.T = utils.TfuncWithFallback(model.DEFAULT_LOCALE)
c.Locale = model.DEFAULT_LOCALE
+
+ if *utils.Cfg.ServiceSettings.SiteURL != "" {
+ c.SetSiteURL(*utils.Cfg.ServiceSettings.SiteURL)
+ }
+
return c
}