summaryrefslogtreecommitdiffstats
path: root/api/channel.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-08-19 14:15:01 -0400
committerChristopher Speller <crspeller@gmail.com>2015-08-19 14:15:01 -0400
commit65f1d0297e2d8221de5e00bc8ec28c965395b598 (patch)
tree6a231685d858d3580372ef657ba36a6b8f1107ff /api/channel.go
parentfbc2283220240b564eec1a0a0a037443a78f8036 (diff)
parent11247061b5623140656e3ec0ee96b6566637a950 (diff)
downloadchat-65f1d0297e2d8221de5e00bc8ec28c965395b598.tar.gz
chat-65f1d0297e2d8221de5e00bc8ec28c965395b598.tar.bz2
chat-65f1d0297e2d8221de5e00bc8ec28c965395b598.zip
Merge pull request #406 from mattermost/mm-1281
MM-1281 Track channel creator in DB and show in channel intro message
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 de15b3610..5f3282072 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