diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-04-12 02:48:06 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-12 02:48:06 +0900 |
| commit | 39d87305bae56e90fadabff52424872c6c2b6fc6 (patch) | |
| tree | 0bbd332e996da9d51c604a1e7147f75c57ebbed7 /src/server | |
| parent | Merge pull request #1454 from tamaina/provide_thumb_for_more_types (diff) | |
| download | sharkey-39d87305bae56e90fadabff52424872c6c2b6fc6.tar.gz sharkey-39d87305bae56e90fadabff52424872c6c2b6fc6.tar.bz2 sharkey-39d87305bae56e90fadabff52424872c6c2b6fc6.zip | |
Update index.ts
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/file/index.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/file/index.ts b/src/server/file/index.ts index 658117e3ac..95e7867f01 100644 --- a/src/server/file/index.ts +++ b/src/server/file/index.ts @@ -56,11 +56,12 @@ function thumbnail(data: stream.Readable, type: string, resize: number): ISend { const readable: stream.Readable = (() => { // 動画であれば if (/^video\/.*$/.test(type)) { - // 実装は先延ばし + // TODO // 使わないことになったストリームはしっかり取り壊す data.destroy(); return fs.createReadStream(`${__dirname}/assets/thumbnail-not-available.png`); // 画像であれば + // Note: SVGはapplication/xml } else if (/^image\/.*$/.test(type) || type == 'application/xml') { // 0フレーム目を送る try { |