Skip to content

Commit

Permalink
fix fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Foraker committed Aug 10, 2015
1 parent 42bc69c commit f7d34fa
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Slack.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,7 @@ Slack.prototype.postMessage = function (query, soResults) {
_that = this,

base_options = {
body: {
attachments: [
{
fallback: 'Required text summary of the attachment that is shown by clients that understand attachments but choose not to show them.',
color: '#e74c3c'
}
]
},
body: {},
json: true,
url: process.env.SLACK_URL
},
Expand All @@ -42,6 +35,8 @@ Slack.prototype.postMessage = function (query, soResults) {
icon_emoji: _.sample(emojis),
attachments: [
{
fallback: 'Required text summary of the attachment that is shown by clients that understand attachments but choose not to show them.',
color: '#e74c3c',
fields: arrResults
}
]
Expand Down

0 comments on commit f7d34fa

Please sign in to comment.