mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-24 18:43:28 +02:00
🖌
This commit is contained in:
parent
703376841a
commit
760b90a84b
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue