1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-03 09:18:46 +09:00
This commit is contained in:
syuilo 2017-12-09 23:03:48 +09:00
parent 42aef0abe0
commit 39dacbb58f

View File

@ -135,6 +135,8 @@ async function sendFileById(req: express.Request, res: express.Response): Promis
}
const fileId = new mongodb.ObjectID(req.params.id);
// Fetch (drive) file
const file = await DriveFile.findOne({ _id: fileId });
// validate name