media: fix lottie mime type for direct download

This commit is contained in:
Toni Spets
2025-04-25 07:38:03 +03:00
parent 48d91fdf76
commit 53e89441b7
+3
View File
@@ -410,5 +410,8 @@ func (t *ReadyTransferer) DirectDownloadURL(ctx context.Context, loggedInUserID
if t.inner.fileInfo.MimeType == "" {
t.inner.fileInfo.MimeType = "image/jpeg"
}
if t.inner.fileInfo.MimeType == "application/x-tgsticker" {
t.inner.fileInfo.MimeType = "video/lottie+json"
}
return mxc, &t.inner.fileInfo, err
}