diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-01-19 09:52:27 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-01-19 09:52:27 +0900 |
| commit | ac5d798cde08aa4c1f4db25bcae44ba930aa688c (patch) | |
| tree | f96fb2a11591780cd291d0f01934b4d9de4b5dc7 /src/server/api/endpoints/drive/files | |
| parent | Improve drive file operation (diff) | |
| download | sharkey-ac5d798cde08aa4c1f4db25bcae44ba930aa688c.tar.gz sharkey-ac5d798cde08aa4c1f4db25bcae44ba930aa688c.tar.bz2 sharkey-ac5d798cde08aa4c1f4db25bcae44ba930aa688c.zip | |
Fix typo
Diffstat (limited to 'src/server/api/endpoints/drive/files')
| -rw-r--r-- | src/server/api/endpoints/drive/files/show.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/api/endpoints/drive/files/show.ts b/src/server/api/endpoints/drive/files/show.ts index 57a22d1178..e6d85a5efb 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, '')); |