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

Этот коммит содержится в:
JoramWilander
2015-06-29 09:07:13 -04:00
родитель 0792eb18d5
Коммит cebb4bef84
5 изменённых файлов: 29 добавлений и 22 удалений

Просмотреть файл

@@ -285,7 +285,7 @@ func getChannel(c *api.Context, w http.ResponseWriter, r *http.Request) {
otherUserId = ids[0]
}
if sc, err := api.CreateDirectChannel(c, otherUserId, r.URL.Path); err != nil {
if sc, err := api.CreateDirectChannel(c, otherUserId); err != nil {
api.Handle404(w, r)
return
} else {