diff --git a/app/soapbox/utils/resize_image.js b/app/soapbox/utils/resize_image.js index b1fb4a41c..264dbf92b 100644 --- a/app/soapbox/utils/resize_image.js +++ b/app/soapbox/utils/resize_image.js @@ -68,7 +68,7 @@ const processImage = (img, { width, height, orientation, type = 'image/png', nam context.drawImage(img, 0, 0, width, height); canvas.toBlob((blob) => { - resolve(new File([blob], name)); + resolve(new File([blob], name, { type, lastModified: new Date().getTime() })); }, type); });