Fix checkup issue with block placeholder

This commit is contained in:
yflory 2025-03-31 10:58:43 +02:00
parent 77b46f62a2
commit 0c5d4bbf5e

View File

@ -359,6 +359,9 @@ app.use('/block/', function (req, res, next) {
// block access control only applies to files
// identified by base64-encoded public keys
// skip everything else, ie. /block/placeholder.txt
if (/placeholder\.txt(\?.+)?/.test(parsed.base)) {
return void next();
}
if (typeof(name) !== 'string' || name.length !== 44) {
return void res.status(404).json({
error: "INVALID_ID",