aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2015-08-14 12:21:13 -0400
committerRyan Huber <rhuber@gmail.com>2015-08-14 12:21:13 -0400
commit45622256ac987592fa5235284243517a372aa95d (patch)
tree8808fb29b9c3ed3e5f765abdb0dc10cf8dc3fc53 /wee_slack.py
parentfc5a278eb14378aeefb00acf6441039afc0acf36 (diff)
downloadwee-slack-45622256ac987592fa5235284243517a372aa95d.tar.gz
reaction text changes should happen after unicode conversion
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 4770ecc..903a3e4 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1371,12 +1371,12 @@ def process_message(message_json, cache=True):
text = text.replace("\t", " ")
name = get_user(message_json, server)
- if "reactions" in message_json:
- text += create_reaction_string(message_json["reactions"])
-
text = text.encode('utf-8')
name = name.encode('utf-8')
+ if "reactions" in message_json:
+ text += create_reaction_string(message_json["reactions"])
+
if "subtype" in message_json and message_json["subtype"] == "message_changed":
if "edited" in message_json["message"]:
append = " (edited)"