mirror of https://gitlab.com/bashrc2/epicyon
Chat link at top of attachments
parent
63dc7e54e3
commit
db870a7d6e
|
@ -1332,7 +1332,6 @@ def get_post_attachments_as_html(base_dir: str,
|
||||||
|
|
||||||
attachment_ctr = 0
|
attachment_ctr = 0
|
||||||
attachment_str = ''
|
attachment_str = ''
|
||||||
chat_link_str = ''
|
|
||||||
media_style_added = False
|
media_style_added = False
|
||||||
post_id = None
|
post_id = None
|
||||||
if post_json_object['object'].get('id'):
|
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'] or \
|
||||||
'.' not in attach['href']:
|
'.' not in attach['href']:
|
||||||
continue
|
continue
|
||||||
chat_link_str += \
|
attachment_str += \
|
||||||
'<p><a href="' + attach['href'] + \
|
'<p><a href="' + attach['href'] + \
|
||||||
'" target="_blank" rel="nofollow noopener noreferrer">' + \
|
'" target="_blank" rel="nofollow noopener noreferrer">' + \
|
||||||
'💬 ' + translate['Chat'] + '</a></p>'
|
'💬 ' + translate['Chat'] + '</a></p>'
|
||||||
|
@ -1723,7 +1722,7 @@ def get_post_attachments_as_html(base_dir: str,
|
||||||
attachment_ctr += 1
|
attachment_ctr += 1
|
||||||
if media_style_added:
|
if media_style_added:
|
||||||
attachment_str += '</div><br>'
|
attachment_str += '</div><br>'
|
||||||
return attachment_str + chat_link_str, gallery_str
|
return attachment_str, gallery_str
|
||||||
|
|
||||||
|
|
||||||
def html_post_separator(base_dir: str, column: str) -> str:
|
def html_post_separator(base_dir: str, column: str) -> str:
|
||||||
|
|
Loading…
Reference in New Issue