diff options
author | calve <calvinh34@gmail.com> | 2015-10-28 11:48:31 +0100 |
---|---|---|
committer | calve <calvinh34@gmail.com> | 2016-01-04 11:11:19 +0100 |
commit | c9f9533200fbb8a7e7bc9a9f21f8db175a8d019c (patch) | |
tree | 8c4d57185cf2cc82d05f4472f0ab6a707c765409 | |
parent | b16d11e1057724b26339b72d4a4b765e1bc58c7a (diff) | |
download | wee-slack-c9f9533200fbb8a7e7bc9a9f21f8db175a8d019c.tar.gz |
Call ``unfurl_ref()`` with ``ignore_alt_text``
-rw-r--r-- | wee_slack.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |