Don't show announce icon for images without descriptions

main
Bob Mottram 2023-03-11 20:45:47 +00:00
parent 53950af9b8
commit 53e1a15038
1 changed files with 4 additions and 0 deletions

View File

@ -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'