aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTollef Fog Heen <tfheen@err.no>2015-11-27 05:01:19 +0100
committerTollef Fog Heen <tfheen@err.no>2015-11-27 05:01:19 +0100
commit40ca86d615db7687f0295aae7228ea1f24ea5b6f (patch)
tree77d9cc99dc01b4b404e5245a8223342ee4da42e3 /wee_slack.py
parent9e0db5b827768d2b406787b609f400343b8929f6 (diff)
downloadwee-slack-40ca86d615db7687f0295aae7228ea1f24ea5b6f.tar.gz
Fix display of user name on topic change
Make sure to call unfurl_refs so we get the right display name for the user who changed the topic.
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index c665d35..505bbcf 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1349,7 +1349,8 @@ def process_channel_join(message_json):
def process_channel_topic(message_json):
server = servers.find(message_json["_server"])
channel = server.channels.find(message_json["channel"])
- channel.buffer_prnt(w.prefix("network").rstrip(), message_json["text"], message_json["ts"])
+ text = unfurl_refs(message_json["text"], ignore_alt_text=False)
+ channel.buffer_prnt(w.prefix("network").rstrip(), text, message_json["ts"])
channel.set_topic(message_json["topic"])