-
Notifications
You must be signed in to change notification settings - Fork 640
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
Sending formatted links doesn't work #114
Comments
Thanks for opening the bug here - sorry we couldn't resolve the issue on twitter. I've reproduced this. You're right that this worked in v2, but it was one of those things where it worked by accident, which makes a fix harder. To understand what's going on here, it helps to know how Slack formats links internally. The summary is that a link in slack is represented by Hubot v2 converted URLS into links inside the adapter, and did so naively. It converted With Hubot v3 our servers convert URLs into links, it converts I think the answer here is for us to work out a way for hubot to send formatted text to slack (so you can send |
Thanks for responding here @paulhammond ! I wrote up a quick script to test this and the URLs are still not parsing as documented: Hubot Script:
Slack Output:
Any ideas? |
FYI, I updated
|
+1 |
@ferrari that's a slightly different issue, which is fixed by #125. The old version of hubot worked with different APIs on the Slack side. The new APIs work differently, but add a lot of new functionality. Unfortunately we're still shaking out some edge cases, sorry about the problems this is causing you. @justindowning: Unfortunately the fix for this needs some more work on our servers, so didn't make the cut for 3.2. We're still working on it... |
Thanks! |
@ferrari We just merged the pull request, but it's not yet made it into a release. Until then you could put something like this in your package.json and I think it'll pull in the new code:
Don't forget to change it back after the next release! |
I just submitted a pull request (#129) that (among other things) tweaks the formatting so it stops using both the label and the link together. It's just weird to get results like "apple.com http://apple.com". |
@kballard that's a different issue. This is about sending formatted links to Slack, not receiving formatted links from Slack. |
If I understand this correctly, the issue is currently server-side? Or to say it another way, there is currently nothing I can do in this or the node-slack-client repository to make links work? |
Any progress or updates on this issue? We rely on a lot of formatted links in our messages, and I can't find any ways to get the 3.0 adapter to send links in a format that gets formatted correctly |
Seconded. |
@paulhammond How are things looking server-side? |
It would be nice if the link text allowed whitespace as well, e.g.:
Is there a workaround to achieve this type of formatting? |
Is this getting fixed sometimes soon peeps? |
+1 |
5 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+1 Any closer to this? |
+1 This also inhibits Slack's own custom slackbot responses from serving html. I wonder if there are security issues. Skype started analyzing all IM for evil links because of bots using Skype APIs to send phishing and malware links. Their tradeoff was "go back on our promise of end-to-end privacy" or "save our network". |
But how would evil bots get access to slack? Isn't it all private?
|
Howdy y'all, new project maintainer here. I am looking into this this week! Hold tight, we'll get this sorted. |
I ran into this issue trying to shorten our squad's channel topic into descriptive links. I want: "Appear.in | JIRA Board | Confluence Page" or similar links all visible without hovering over the topic. Thanks! |
Any progress @DEGoodmanWilson? 😟 |
Yes, we will have something for you soon! |
Setting parse='none' (as @mrcarriere mentioned above) worked for me. |
+1 |
Will hyperlinking words and terms in a Slack message be supported when this ticket is closed? Because now it's not supported. This would be very useful for formatting Hubot messages. |
Sorry, a bit behind on closing tickets. This should be fixed in v4. To use the feature, just follow the guide here: https://api.slack.com/docs/message-formatting |
Omg. Thank you! |
This reverts commit ef253ea.
@rucsi is the https://api.slack.com/docs/message-formatting#message_formatting |
@Roach |
FWIW, this remains broken, as of 2018-02-08. |
+1 @kynnjo |
For me, it is working now. |
+1 |
Hello everyone. If anyone has a solution, please let me know. |
Why is this ticket being closed? The issue is still there - I cannot write manually nor via API a link with a label, to sow only the label. |
This is not working for me as well in slack client on macos x |
Can confirm this is still broken. @DEGoodmanWilson, please reopen. |
We switched to using hubot-slack 3.0 and am seeing weird formatting with messages that include URLs.
For example, I have a script with
msg.send "[#{url}|details]"
. The output is as follows (ifurl ==https://google.com
):v2: [details] << where details is a hyperlink in the channel
v3: [https://google.com%7Cdetails]
I've tried
<https://google.com|details>
too, but that input is printed literally in the channel.The text was updated successfully, but these errors were encountered: