bug: Slack text is escaped but automatic parsing is disabled
See original GitHub issue📣 Notification Service(s) Impacted
Slack
🐞 Describe the bug
I’m not able to send text with links in my slack messages. The plugin is escaping text like the docs recommend but its not landing in Slack properly. My input text like <https://github.com/caronc/apprise | Apprise>
intending to render like Apprise gets transformed into <https://github.com/caronc/apprise|Apprise>
before it gets sent to the Slack API which then renders the full text string <https://github.com/caronc/apprise|Apprise>
in the slack message instead of the expected Apprise.
I believe the issue is that we’re disabling automatic parsing by excluding link_names
, this is the snippet from the docs about how to disable parsing:
For the top-level text field, or text in secondary message attachments, as long as you exclude the link_names argument when publishing, this will be disabled by default. Regular URLs will still be converted into clickable links however - to disable this, pass the parse argument with a value of none when publishing.
When I commented out this reformat_mapping escape characters locally I saw my message render properly in slack.
I think the easiest path forward would be to stop reformatting those characters. Does that sound right? I’m new to using apprise (thanks btw, its been awesome so far!) so I might have missed something.
💡 Screenshots and Logs
💻 Your System Details:
- OS: Mac
- Python Version: 3.9
🔮 Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created a year ago
- Comments:10 (5 by maintainers)
Top GitHub Comments
I’ll definitely look into this over the weekend if i can.
@caronc totally understandable, thanks for the detail. I’ll keep an eye out for the next release!
I’ll close this issue since its resolved but feel free to re-open if needed for whatever reason 😄 .