summaryrefslogtreecommitdiffstats
path: root/api/post.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2016-01-21 14:15:44 -0600
committer=Corey Hulen <corey@hulen.com>2016-01-21 14:15:44 -0600
commit221985435966dbf583d3e367c243822e338b6bc4 (patch)
tree140d0b1318df0d5b11ef21eacf7cfa7545498585 /api/post.go
parent8cc45a2e08c3eaaa66619cc7ee9dfc7ff49b388f (diff)
downloadchat-221985435966dbf583d3e367c243822e338b6bc4.tar.gz
chat-221985435966dbf583d3e367c243822e338b6bc4.tar.bz2
chat-221985435966dbf583d3e367c243822e338b6bc4.zip
PLT-7 client side infra
Diffstat (limited to 'api/post.go')
-rw-r--r--api/post.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/post.go b/api/post.go
index 42c3c304d..ecdb0925a 100644
--- a/api/post.go
+++ b/api/post.go
@@ -392,7 +392,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, 0, c.T}
+ newContext := &Context{mockSession, model.NewId(), "", c.Path, nil, c.teamURLValid, c.teamURL, c.siteURL, 0, c.T, c.Locale}
if text, ok := respProps["text"]; ok {
if _, err := CreateWebhookPost(newContext, post.ChannelId, text, respProps["username"], respProps["icon_url"], post.Props, post.Type); err != nil {