diff --git a/webapp_utils.py b/webapp_utils.py index 8ff4da4d2..fb595b947 100644 --- a/webapp_utils.py +++ b/webapp_utils.py @@ -1332,7 +1332,6 @@ def get_post_attachments_as_html(base_dir: str, attachment_ctr = 0 attachment_str = '' - chat_link_str = '' media_style_added = False post_id = None if post_json_object['object'].get('id'): @@ -1358,7 +1357,7 @@ def get_post_attachments_as_html(base_dir: str, '://' not in attach['href'] or \ '.' not in attach['href']: continue - chat_link_str += \ + attachment_str += \ '

' + \ '💬 ' + translate['Chat'] + '

' @@ -1723,7 +1722,7 @@ def get_post_attachments_as_html(base_dir: str, attachment_ctr += 1 if media_style_added: attachment_str += '
' - return attachment_str + chat_link_str, gallery_str + return attachment_str, gallery_str def html_post_separator(base_dir: str, column: str) -> str: