From 760b90a84b55a1a3a8467684fbaa28f4f2832d69 Mon Sep 17 00:00:00 2001 From: tamaina Date: Wed, 11 Apr 2018 23:50:11 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=96=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/file/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/file/index.ts b/src/server/file/index.ts index 3e8eed2c38..22370ddd0d 100644 --- a/src/server/file/index.ts +++ b/src/server/file/index.ts @@ -55,7 +55,7 @@ interface ISend { function thumbnail(data: stream.Readable, type: string, resize: number): ISend { const readable: stream.Readable = (() => { // 動画か画像であれば - if (/^(?:video|image)\/.*$/.test(type)) { + if (/^(?:video|image)\/.*$/.test(type) || type == 'application/xml') { // 0フレーム目を送る try { return gm(data).selectFrame(0).stream();