summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/platform/oldcommands.go3
-rw-r--r--cmd/platform/user.go2
2 files changed, 3 insertions, 2 deletions
diff --git a/cmd/platform/oldcommands.go b/cmd/platform/oldcommands.go
index 1cf898882..a599fa47e 100644
--- a/cmd/platform/oldcommands.go
+++ b/cmd/platform/oldcommands.go
@@ -319,7 +319,8 @@ func cmdInviteUser() {
}
invites := []string{flagEmail}
- api.InviteMembers(team, user.GetDisplayName(), invites)
+ c := getMockContext()
+ api.InviteMembers(team, user.GetDisplayName(), invites, c.GetSiteURL())
os.Exit(0)
}
diff --git a/cmd/platform/user.go b/cmd/platform/user.go
index 43a00e68d..373274241 100644
--- a/cmd/platform/user.go
+++ b/cmd/platform/user.go
@@ -261,7 +261,7 @@ func inviteUser(email string, team *model.Team, teamArg string) {
CommandPrintErrorln("Can't find team '" + teamArg + "'")
return
}
- api.InviteMembers(team, "Administrator", invites)
+ api.InviteMembers(team, "Administrator", invites, *utils.Cfg.ServiceSettings.SiteURL)
CommandPrettyPrintln("Invites may or may not have been sent.")
}