summaryrefslogtreecommitdiffstats
path: root/api/channel.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/channel.go')
-rw-r--r--api/channel.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/channel.go b/api/channel.go
index 151627623..be6a8b064 100644
--- a/api/channel.go
+++ b/api/channel.go
@@ -58,6 +58,8 @@ func createChannel(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
+ channel.CreatorId = c.Session.UserId
+
if sc, err := CreateChannel(c, channel, true); err != nil {
c.Err = err
return