diff options
author | Corey Hulen <corey@hulen.com> | 2016-01-21 14:36:46 -0600 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-01-21 14:36:46 -0600 |
commit | 6c86bae5d54a2f24733512e6c9eee78a832a45e3 (patch) | |
tree | 4e1db4ba11bc8dff70a8049ab887588686fa4d47 /api/post.go | |
parent | a2fa683c1b5fc0c62506e3ac40784b053eda6e3e (diff) | |
parent | 3ff05780a1b4f08d256a983bc9ec06f9841f0538 (diff) | |
download | chat-6c86bae5d54a2f24733512e6c9eee78a832a45e3.tar.gz chat-6c86bae5d54a2f24733512e6c9eee78a832a45e3.tar.bz2 chat-6c86bae5d54a2f24733512e6c9eee78a832a45e3.zip |
Merge pull request #1949 from mattermost/PLT-7-client-infra
PLT-7 client infra
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 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 { |