From 2877fa65958921c4b8dcf6caef11c60083495574 Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Thu, 26 Mar 2020 21:53:35 +0100 Subject: Don't print image_url if it's equal to from_url --- wee_slack.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wee_slack.py') diff --git a/wee_slack.py b/wee_slack.py index 9dd7d3a..6ceb435 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -3466,7 +3466,8 @@ def unwrap_attachments(message_json, text_before): prepend_title_text = '' image_url = attachment.get('image_url', '') - if image_url not in text_before_unescaped and image_url != title_link: + if (image_url not in text_before_unescaped + and image_url != from_url and image_url != title_link): t.append(image_url) fields = attachment.get("fields") -- cgit