mirror of
https://github.com/misskey-dev/media-proxy.git
synced 2025-04-29 02:47:26 +09:00
build fix
This commit is contained in:
parent
29c6d8f37e
commit
d1c41ad2e9
@ -26,7 +26,7 @@ export async function detectType(path) {
|
||||
if (type.mime === 'application/xml' && await checkSvg(path)) {
|
||||
return TYPE_SVG;
|
||||
}
|
||||
if (isMimeImage(type.mime, 'safe-file')) {
|
||||
if (!isMimeImage(type.mime, 'safe-file')) {
|
||||
return TYPE_OCTET_STREAM;
|
||||
}
|
||||
return {
|
||||
|
Loading…
x
Reference in New Issue
Block a user