From 11247061b5623140656e3ec0ee96b6566637a950 Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Wed, 19 Aug 2015 08:31:20 -0400 Subject: Track channel creator in DB and show in channel intro message. --- api/channel.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'api/channel.go') 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 -- cgit v1.2.3-1-g7c22