summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2017-09-05 19:20:47 -0500
committerGitHub <noreply@github.com>2017-09-05 19:20:47 -0500
commit7cee7b3342afa4b6845b0574f90c9fdc586c3c34 (patch)
treeb494d626944706a2aa672d09b61cca604d26193f /app
parentdf085d273d7ed3fe0d53b78364da46cdd6429c53 (diff)
downloadchat-7cee7b3342afa4b6845b0574f90c9fdc586c3c34.tar.gz
chat-7cee7b3342afa4b6845b0574f90c9fdc586c3c34.tar.bz2
chat-7cee7b3342afa4b6845b0574f90c9fdc586c3c34.zip
PLT-7300: Add use_user_icon prop to allow bots to just use their user icon (#7381)
* add use_user_icon prop to allow bots to just use their user icon * revert unintentional change
Diffstat (limited to 'app')
-rw-r--r--app/plugin/jira/plugin.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/plugin/jira/plugin.go b/app/plugin/jira/plugin.go
index 94922321c..ad4ef6ac0 100644
--- a/app/plugin/jira/plugin.go
+++ b/app/plugin/jira/plugin.go
@@ -69,8 +69,9 @@ func (p *Plugin) handleWebhook(w http.ResponseWriter, r *http.Request) {
Type: model.POST_SLACK_ATTACHMENT,
UserId: user.Id,
Props: map[string]interface{}{
- "from_webhook": "true",
- "attachments": []*model.SlackAttachment{attachment},
+ "from_webhook": "true",
+ "use_user_icon": "true",
+ "attachments": []*model.SlackAttachment{attachment},
},
}); err != nil {
http.Error(w, p.api.I18n(err.Message, r), err.StatusCode)