thumbnail: Newly-thumbnailed avatars are all image/png.

This commit is contained in:
Alex Vandiver 2024-07-11 01:49:09 +00:00 committed by Tim Abbott
parent a9d1adadb7
commit 4d3d3efcf1
1 changed files with 2 additions and 4 deletions

View File

@ -90,8 +90,7 @@ def thumbnail_s3_avatars(users: QuerySet[Any]) -> None:
continue
avatar_bucket.Object(new_base + ".png").put(
Metadata=metadata,
ContentDisposition=old_data["ContentDisposition"],
ContentType=old_data["ContentType"],
ContentType="image/png",
CacheControl="public, max-age=31536000, immutable",
Body=small,
)
@ -101,8 +100,7 @@ def thumbnail_s3_avatars(users: QuerySet[Any]) -> None:
continue
avatar_bucket.Object(new_base + "-medium.png").put(
Metadata=metadata,
ContentDisposition=old_data["ContentDisposition"],
ContentType=old_data["ContentType"],
ContentType="image/png",
CacheControl="public, max-age=31536000, immutable",
Body=medium,
)