diff options
author | =Corey Hulen <corey@hulen.com> | 2016-01-19 22:00:01 -0600 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2016-01-19 22:00:01 -0600 |
commit | 8e404c1dcf820cf767e9d6899e8c1efc7bb5ca96 (patch) | |
tree | ed96e0aff323aaf7a45d38896ea6a929dc320500 /api/post.go | |
parent | 36c5c46e24f745ee80b49f47363217fcb740ce53 (diff) | |
download | chat-8e404c1dcf820cf767e9d6899e8c1efc7bb5ca96.tar.gz chat-8e404c1dcf820cf767e9d6899e8c1efc7bb5ca96.tar.bz2 chat-8e404c1dcf820cf767e9d6899e8c1efc7bb5ca96.zip |
PLT-7 Adding translation function to context
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 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 { |