Merge branch 'master' of https://github.com/syuilo/misskey
This commit is contained in:
		| @@ -56,11 +56,12 @@ function thumbnail(data: stream.Readable, type: string, resize: number): ISend { | |||||||
| 	const readable: stream.Readable = (() => { | 	const readable: stream.Readable = (() => { | ||||||
| 		// 動画であれば | 		// 動画であれば | ||||||
| 		if (/^video\/.*$/.test(type)) { | 		if (/^video\/.*$/.test(type)) { | ||||||
| 			// 実装は先延ばし | 			// TODO | ||||||
| 			// 使わないことになったストリームはしっかり取り壊す | 			// 使わないことになったストリームはしっかり取り壊す | ||||||
| 			data.destroy(); | 			data.destroy(); | ||||||
| 			return fs.createReadStream(`${__dirname}/assets/thumbnail-not-available.png`); | 			return fs.createReadStream(`${__dirname}/assets/thumbnail-not-available.png`); | ||||||
| 		// 画像であれば | 		// 画像であれば | ||||||
|  | 		// Note: SVGはapplication/xml | ||||||
| 		} else if (/^image\/.*$/.test(type) || type == 'application/xml') { | 		} else if (/^image\/.*$/.test(type) || type == 'application/xml') { | ||||||
| 			// 0フレーム目を送る | 			// 0フレーム目を送る | ||||||
| 			try { | 			try { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo