diff options
author | =Corey Hulen <corey@hulen.com> | 2015-10-20 14:49:42 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-10-20 14:49:42 -0700 |
commit | 1fc12dd8ba2238eba7d154eee55e1381e7415372 (patch) | |
tree | df92c9501d91b29801c87d38e7d0a0ec234bbcee /api/post.go | |
parent | fa3a0df2b63d3f1bbbad44bf20afa48fed42aa06 (diff) | |
download | chat-1fc12dd8ba2238eba7d154eee55e1381e7415372.tar.gz chat-1fc12dd8ba2238eba7d154eee55e1381e7415372.tar.bz2 chat-1fc12dd8ba2238eba7d154eee55e1381e7415372.zip |
Multi-session login
Diffstat (limited to 'api/post.go')
-rw-r--r-- | api/post.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/post.go b/api/post.go index 73a63cb72..ded71f727 100644 --- a/api/post.go +++ b/api/post.go @@ -281,7 +281,7 @@ func handleWebhookEventsAndForget(c *Context, post *model.Post, team *model.Team // copy the context and create a mock session for posting the message mockSession := model.Session{UserId: hook.CreatorId, TeamId: hook.TeamId, IsOAuth: false} - newContext := &Context{mockSession, model.NewId(), "", c.Path, nil, c.teamURLValid, c.teamURL, c.siteURL} + newContext := &Context{mockSession, model.NewId(), "", c.Path, nil, c.teamURLValid, c.teamURL, c.siteURL, 0} if text, ok := respProps["text"]; ok { if _, err := CreateWebhookPost(newContext, post.ChannelId, text, respProps["username"], respProps["icon_url"]); err != nil { |