diff options
author | JoramWilander <jwawilander@gmail.com> | 2015-06-29 09:07:13 -0400 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2015-06-29 09:07:13 -0400 |
commit | cebb4bef843e848531bdf3465f49bd0d995efa8e (patch) | |
tree | 28f8c7052b6958ba2daf4881f9fe24a0b1a04e47 /web | |
parent | 0792eb18d535410b456f3cc569e243efb85a47b6 (diff) | |
download | chat-cebb4bef843e848531bdf3465f49bd0d995efa8e.tar.gz chat-cebb4bef843e848531bdf3465f49bd0d995efa8e.tar.bz2 chat-cebb4bef843e848531bdf3465f49bd0d995efa8e.zip |
move default channel creation to seperate func and add off-topic
Diffstat (limited to 'web')
-rw-r--r-- | web/web.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/web.go b/web/web.go index 7357124b5..443a75916 100644 --- a/web/web.go +++ b/web/web.go @@ -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 { |