fix(server): 特定のPNG画像のアップロードに失敗する問題を修正
Co-Authored-By: haru <64310155+usbharu@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									403849805a
								
							
						
					
					
						commit
						3cfd017538
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		|  | @ -100,6 +100,7 @@ You should also include the user name that made the change. | |||
| - Server: pages/likeのエラーIDが重複しているのを修正 @syuilo | ||||
| - Server: pages/updateのパラメータによってはsummaryの値が更新されないのを修正 @syuilo | ||||
| - Server: Escape SQL LIKE @mei23 | ||||
| - Server: 特定のPNG画像のアップロードに失敗する問題を修正 @usbharu | ||||
| - Server: 非公開のクリップのURLでOGPレンダリングされる問題を修正 @syuilo | ||||
| - Client: case insensitive emoji search @saschanaz | ||||
| - Client: InAppウィンドウが操作できなくなることがあるのを修正 @tamaina | ||||
|  |  | |||
|  | @ -398,13 +398,13 @@ export class FileInfoService { | |||
| 				.raw() | ||||
| 				.ensureAlpha() | ||||
| 				.resize(64, 64, { fit: 'inside' }) | ||||
| 				.toBuffer((err, buffer, { width, height }) => { | ||||
| 				.toBuffer((err, buffer, info) => { | ||||
| 					if (err) return reject(err); | ||||
| 
 | ||||
| 					let hash; | ||||
| 
 | ||||
| 					try { | ||||
| 						hash = encode(new Uint8ClampedArray(buffer), width, height, 5, 5); | ||||
| 						hash = encode(new Uint8ClampedArray(buffer), info.width, info.height, 5, 5); | ||||
| 					} catch (e) { | ||||
| 						return reject(e); | ||||
| 					} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue