From ac5d798cde08aa4c1f4db25bcae44ba930aa688c Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 19 Jan 2019 09:52:27 +0900 Subject: [PATCH] Fix typo --- src/server/api/endpoints/drive/files/show.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/api/endpoints/drive/files/show.ts b/src/server/api/endpoints/drive/files/show.ts index 57a22d117..e6d85a5ef 100644 --- a/src/server/api/endpoints/drive/files/show.ts +++ b/src/server/api/endpoints/drive/files/show.ts @@ -48,7 +48,7 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => { } else if (ps.url) { const isInternalStorageUrl = ps.url.startsWith(config.drive_url); if (isInternalStorageUrl) { - // Extract file if from url + // Extract file ID from url // e.g. // http://misskey.local/files/foo?original=bar --> foo const fileId = new mongo.ObjectID(ps.url.replace(config.drive_url, '').replace(/\?(.*)$/, '').replace(/\//g, ''));