summaryrefslogtreecommitdiffstats
path: root/api/post.go
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2016-01-19 22:14:26 -0600
committerCorey Hulen <corey@hulen.com>2016-01-19 22:14:26 -0600
commit1acd38b7b19521d06d274c42c00ce7072cd92196 (patch)
treed87809ff2a306e5428b0ab6973d05509baa21abd /api/post.go
parent36c5c46e24f745ee80b49f47363217fcb740ce53 (diff)
parent96f8394bf451fd5a903f1f107fb276c61f6c2009 (diff)
downloadchat-1acd38b7b19521d06d274c42c00ce7072cd92196.tar.gz
chat-1acd38b7b19521d06d274c42c00ce7072cd92196.tar.bz2
chat-1acd38b7b19521d06d274c42c00ce7072cd92196.zip
Merge pull request #1926 from mattermost/PLT-7-context
PLT-7 Adding translation function to context
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 ae4d3cc50..7cd45d310 100644
--- a/api/post.go
+++ b/api/post.go
@@ -370,7 +370,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}
+ newContext := &Context{mockSession, model.NewId(), "", c.Path, nil, c.teamURLValid, c.teamURL, c.siteURL, 0, c.T}
if text, ok := respProps["text"]; ok {
if _, err := CreateWebhookPost(newContext, post.ChannelId, text, respProps["username"], respProps["icon_url"], post.Props, post.Type); err != nil {