From 523e0e31cd5c178a29242fd8c21af7352c86ea96 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 23 Dec 2024 13:53:47 +0200 Subject: [PATCH] msgconv/from-slack: set url preview image mime type --- pkg/msgconv/blocks.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/msgconv/blocks.go b/pkg/msgconv/blocks.go index 7921997..d048695 100644 --- a/pkg/msgconv/blocks.go +++ b/pkg/msgconv/blocks.go @@ -126,6 +126,7 @@ func (mc *MessageConverter) attachmentToURLPreview(ctx context.Context, portal * ImageSize: imageSize, ImageWidth: imageWidth, ImageHeight: imageHeight, + ImageType: imageMime, }, MatchedURL: attachment.OriginalURL, ImageEncryption: file,