move default channel creation to seperate func and add off-topic

This commit is contained in:
JoramWilander
2015-06-29 09:07:13 -04:00
parent 0792eb18d5
commit cebb4bef84
5 changed files with 29 additions and 22 deletions

View File

@@ -78,7 +78,7 @@ func manualTest(c *api.Context, w http.ResponseWriter, r *http.Request) {
createdTeam := result.Data.(*model.Team)
channel := &model.Channel{DisplayName: "Town Square", Name: "town-square", Type: model.CHANNEL_OPEN, TeamId: createdTeam.Id}
if _, err := api.CreateChannel(c, channel, r.URL.Path, false); err != nil {
if _, err := api.CreateChannel(c, channel, false); err != nil {
c.Err = err
return
}