diff options
author | Ryan Huber <rhuber@gmail.com> | 2017-04-13 09:15:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-13 09:15:52 -0700 |
commit | cc31591cdfa8b867ef4f42990b7191423ebccba6 (patch) | |
tree | 1181862f3d333d3d4be124b1b2dcb27292b7e361 /wee_slack.py | |
parent | 49675a01e341e1b3f278cb9589e677c8b35dfc83 (diff) | |
parent | 6542596b3d514436b35058165e9921ece7ef6c0c (diff) | |
download | wee-slack-cc31591cdfa8b867ef4f42990b7191423ebccba6.tar.gz |
Merge pull request #341 from wee-slack/actually_unfurl_again
yay for unfurls
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/wee_slack.py b/wee_slack.py index cf5ec1f..10e4882 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2054,19 +2054,19 @@ def subprocess_message_changed(message_json, eventrouter, channel, team): if m: new_message = m #message = SlackMessage(new_message, team, channel) - #if "attachments" in m: - # message_json["attachments"] = m["attachments"] - #if "text" in m: - # if "text" in message_json: - # message_json["text"] += m["text"] - # dbg("added text!") - # else: - # message_json["text"] = m["text"] - #if "fallback" in m: - # if "fallback" in message_json: - # message_json["fallback"] += m["fallback"] - # else: - # message_json["fallback"] = m["fallback"] + if "attachments" in m: + message_json["attachments"] = m["attachments"] + if "text" in m: + if "text" in message_json: + message_json["text"] += m["text"] + dbg("added text!") + else: + message_json["text"] = m["text"] + if "fallback" in m: + if "fallback" in message_json: + message_json["fallback"] += m["fallback"] + else: + message_json["fallback"] = m["fallback"] text_before = (len(new_message['text']) > 0) new_message["text"] += unwrap_attachments(message_json, text_before) |