aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 9262e7f..dae13b0 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -2812,6 +2812,11 @@ def unwrap_attachments(message_json, text_before):
tx = re.sub(r' *\n[\n ]+', '\n', atext)
t.append(prepend_title_text + tx)
prepend_title_text = ''
+
+ image_url = attachment.get('image_url', '')
+ if image_url not in text_before_unescaped and image_url != title_link:
+ t.append(image_url)
+
fields = attachment.get("fields", None)
if fields:
for f in fields: