summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-06-29 09:07:13 -0400
committerJoramWilander <jwawilander@gmail.com>2015-06-29 09:07:13 -0400
commitcebb4bef843e848531bdf3465f49bd0d995efa8e (patch)
tree28f8c7052b6958ba2daf4881f9fe24a0b1a04e47 /web
parent0792eb18d535410b456f3cc569e243efb85a47b6 (diff)
downloadchat-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.go2
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 {