mirror of
https://github.com/diced/zipline.git
synced 2025-12-12 07:40:45 -08:00
fix: #921
This commit is contained in:
@@ -28,6 +28,7 @@ export async function filesRoute(
|
||||
|
||||
if (file.User?.view.enabled) return res.redirect(`/view/${encodeURIComponent(file.name)}`);
|
||||
if (file.type.startsWith('text/')) return res.redirect(`/view/${encodeURIComponent(file.name)}`);
|
||||
if (file.password) return res.redirect(`/view/${encodeURIComponent(file.name)}`);
|
||||
|
||||
return rawFileHandler(req, res);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user