mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 20:49:06 +01:00
🖌
This commit is contained in:
parent
7715c8dcbb
commit
d2b2aeb0d5
@ -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 New Issue
Block a user