From 15a18550d9c8e35147417944caae9628a4c71fea Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Mon, 19 Feb 2024 09:02:12 +1300 Subject: [PATCH] save larger version of image --- app/activitypub/util.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/activitypub/util.py b/app/activitypub/util.py index 52eefad2..ce554c1c 100644 --- a/app/activitypub/util.py +++ b/app/activitypub/util.py @@ -1133,10 +1133,7 @@ def create_post(activity_log: ActivityPubLog, community: Community, request_json db.session.commit() if post.image_id: - if post.type == POST_TYPE_IMAGE: - make_image_sizes(post.image_id, 266, 512, 'posts') # the 512 sized image is for masonry view - else: - make_image_sizes(post.image_id, 266, None, 'posts') + make_image_sizes(post.image_id, 150, 512, 'posts') # the 512 sized image is for masonry view notify_about_post(post)