This commit is contained in:
tamaina 2023-02-06 15:04:09 +00:00
parent 9bce5f9f4b
commit fc867289da
2 changed files with 2 additions and 1 deletions

View File

@ -77,6 +77,7 @@ async function proxyHandler(request, reply) {
}
// Create temp file
const file = await downloadAndDetectTypeFromUrl(url);
console.log(fs.statSync(file.path));
try {
const isConvertibleImage = isMimeImage(file.mime, 'sharp-convertible-image');
const isAnimationConvertibleImage = isMimeImage(file.mime, 'sharp-animation-convertible-image');

View File

@ -1,6 +1,6 @@
{
"name": "misskey-media-proxy",
"version": "0.0.1",
"version": "0.0.2",
"description": "The Media Proxy for Misskey",
"main": "built/index.js",
"packageManager": "pnpm@7.26.0",