Fix SiteURL in join team email (#4979)

This commit is contained in:
Joram Wilander
2017-01-06 09:10:21 -05:00
committed by Harrison Healey
parent 657d4101f9
commit 1ddac9ccf9
4 changed files with 9 additions and 8 deletions

View File

@@ -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)
}

View File

@@ -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.")
}