mirror of https://gitlab.com/bashrc2/epicyon
Don't show announce icon for images without descriptions
parent
53950af9b8
commit
53e1a15038
|
@ -1357,6 +1357,10 @@ def get_post_attachments_as_html(base_dir: str,
|
||||||
gallery_str += \
|
gallery_str += \
|
||||||
'<label class="transparent">---</label><br>'
|
'<label class="transparent">---</label><br>'
|
||||||
gallery_str += ' <div class="mediaicons">\n'
|
gallery_str += ' <div class="mediaicons">\n'
|
||||||
|
# don't show the announce icon if there is no image
|
||||||
|
# description
|
||||||
|
if not image_description:
|
||||||
|
announce_str = ''
|
||||||
gallery_str += \
|
gallery_str += \
|
||||||
' ' + reply_str + announce_str + like_str + \
|
' ' + reply_str + announce_str + like_str + \
|
||||||
bookmark_str + delete_str + mute_str + '\n'
|
bookmark_str + delete_str + mute_str + '\n'
|
||||||
|
|
Loading…
Reference in New Issue