about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2022-11-14 07:13:14 +0100
committerGitHub <noreply@github.com>2022-11-14 07:13:14 +0100
commit5c826c408db86c3b4abf4959c092ad4c5c807896 (patch)
tree1e53b9393d9dd589cc71e6a38ce85c66dccc3e82
parent167d86d21dbd8dab120555e12c2a3a5e5432d632 (diff)
Fix image type not being set after conversion for convertible image types (#20624)
-rw-r--r--app/models/media_attachment.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/media_attachment.rb b/app/models/media_attachment.rb
index 7aa8658d9..d2bdc55f0 100644
--- a/app/models/media_attachment.rb
+++ b/app/models/media_attachment.rb
@@ -82,6 +82,7 @@ class MediaAttachment < ApplicationRecord
   IMAGE_CONVERTED_STYLES = {
     original: {
       format: 'jpeg',
+      content_type: 'image/jpeg',
     }.merge(IMAGE_STYLES[:original]).freeze,
 
     small: {