Minimizing all images

main
Bob Mottram 2022-11-13 19:52:58 +00:00
parent 19a1676ee8
commit 2101333b92
1 changed files with 2 additions and 0 deletions

View File

@ -1293,6 +1293,8 @@ def get_post_attachments_as_html(base_dir: str,
# optionally hide the image
attributed_actor = None
minimize_images = False
if minimize_all_images:
minimize_images = True
if post_json_object['object'].get('attributedTo'):
if isinstance(post_json_object['object']['attributedTo'],
str):