aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 10e4882..d5acd59 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -2303,7 +2303,9 @@ def unfurl_ref(ref, ignore_alt_text=False):
if ignore_alt_text:
display_text = resolve_ref(id)
else:
- if id.startswith("#C") or id.startswith("@U"):
+ if id.startswith("#C"):
+ display_text = "#{}".format(ref.split('|')[1])
+ elif id.startswith("@U"):
display_text = ref.split('|')[1]
else:
url, desc = ref.split('|', 1)