fix uppercase media file extension

This commit is contained in:
plebeius.eth
2023-07-27 16:56:40 +02:00
parent 6777134a7c
commit c1f1b113e3
+1 -1
View File
@@ -55,7 +55,7 @@ const getCommentMediaInfo = (comment) => {
};
}
const mime = extName(url.pathname.replace('/', ''))[0]?.mime;
const mime = extName(url.pathname.toLowerCase().replace('/', ''))[0]?.mime;
if (mime?.startsWith('image')) {
return {