mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix uppercase media file extension
This commit is contained in:
@@ -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')) {
|
if (mime?.startsWith('image')) {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user