mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	fix resizeImage on upload
This commit is contained in:
		| @@ -104,7 +104,7 @@ function resizeImage(fileObj, callback) { | ||||
| 			image.size(fullPath, next); | ||||
| 		}, | ||||
| 		function (imageData, next) { | ||||
| 			if (imageData.width < parseInt(meta.config.maximumImageWidth, 10) || 760) { | ||||
| 			if (imageData.width < (parseInt(meta.config.maximumImageWidth, 10) || 760)) { | ||||
| 				return callback(null, fileObj); | ||||
| 			} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user