Skip to content
Snippets Groups Projects
Commit 5f10f706 authored by Diego Sampaio's avatar Diego Sampaio
Browse files

don't parse URLs in body if an attachment was sent

parent 0e6c1755
No related branches found
No related tags found
No related merge requests found
## NEXT ## NEXT
- Re authorize streams on reconnect - Re authorize streams on reconnect
- Don't automatically parse URLs in incoming webhooks message body if an attachment is also present
## 0.18.0, 2016-Feb-15 ## 0.18.0, 2016-Feb-15
......
...@@ -71,7 +71,7 @@ this.processWebhookMessage = function(messageObj, user, defaultValues) { ...@@ -71,7 +71,7 @@ this.processWebhookMessage = function(messageObj, user, defaultValues) {
alias: messageObj.username || messageObj.alias || defaultValues.alias, alias: messageObj.username || messageObj.alias || defaultValues.alias,
msg: _.trim(messageObj.text || messageObj.msg || ''), msg: _.trim(messageObj.text || messageObj.msg || ''),
attachments: messageObj.attachments, attachments: messageObj.attachments,
parseUrls: messageObj.parseUrls || true, parseUrls: messageObj.parseUrls || !messageObj.attachments,
bot: messageObj.bot, bot: messageObj.bot,
groupable: false groupable: false
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment