From c9f9533200fbb8a7e7bc9a9f21f8db175a8d019c Mon Sep 17 00:00:00 2001 From: calve Date: Wed, 28 Oct 2015 11:48:31 +0100 Subject: Call ``unfurl_ref()`` with ``ignore_alt_text`` --- wee_slack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wee_slack.py') diff --git a/wee_slack.py b/wee_slack.py index 525f2dc..63b7a13 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -1678,7 +1678,7 @@ def unfurl_refs(text, ignore_alt_text=False): matches = re.findall(r"(<@(?:\S*)>)", text) for m in matches: # Replace them with human readable strings - text = text.replace(m, unfurl_ref(m[1:-1])) + text = text.replace(m, unfurl_ref(m[1:-1], ignore_alt_text)) return text -- cgit