🔗 Added interoperability between S3 hosted files & Sia Skynet files

pull/100/head
tycrek 3 years ago
parent 6bab3e0375
commit 0667cc0f0a
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -80,7 +80,7 @@ router.get('/direct*', (req: AssRequest, res: AssResponse, next) => data.get(req
}
};
return uploaders[s3enabled ? 's3' : useSia ? 'sia' : 'local']();
return uploaders[fileData.randomId.startsWith('sia://') ? 'sia' : s3enabled ? 's3' : 'local']();
}).catch(next));
// Thumbnail response

Loading…
Cancel
Save