diff options
author | enahum <nahumhbl@gmail.com> | 2016-11-21 12:16:17 -0300 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-11-21 07:16:17 -0800 |
commit | 6e8647aaf198eda1999737d5537a84449ef31687 (patch) | |
tree | f3086e0498c90a16d3aca720fe1610c5c561dba0 /mattermost.go | |
parent | f6f0b89a851fcbe1dcf8d5de77c880f333ab2c74 (diff) | |
download | chat-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.go | 5 |
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 } |