Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option unfurl_media=false doesn't work #21

Open
o5 opened this issue Aug 26, 2015 · 0 comments
Open

Option unfurl_media=false doesn't work #21

o5 opened this issue Aug 26, 2015 · 0 comments

Comments

@o5
Copy link

o5 commented Aug 26, 2015

I need to disable unfurling, but when I use option unfurl_media: false, the image is still shown.

This code reproduces it:

var Slack = require('node-slack');
var config = {
    hook: 'https://hooks.slack.com/services/<token>',
    channel: '#<channel>',
};

var slack = new Slack(config.hook);
slack.send({
    text: 'This message should not display image https://d3blmjzegggclu.cloudfront.net/assets/images/front/camera-big.png?1439887878, but image is shown.',
    username: 'TEST',
    channel: config.channel,
    unfurl_links: false,
    unfurl_media: false,
});

Result:

screen shot 2015-08-26 at 11 16 11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant