mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-03 00:31:25 -08:00
save larger version of image
This commit is contained in:
parent
e57e916221
commit
15a18550d9
1 changed files with 1 additions and 4 deletions
|
@ -1133,10 +1133,7 @@ def create_post(activity_log: ActivityPubLog, community: Community, request_json
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|
||||||
if post.image_id:
|
if post.image_id:
|
||||||
if post.type == POST_TYPE_IMAGE:
|
make_image_sizes(post.image_id, 150, 512, 'posts') # the 512 sized image is for masonry view
|
||||||
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')
|
|
||||||
|
|
||||||
notify_about_post(post)
|
notify_about_post(post)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue