mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
Fix tests rewriting logo.png
This commit is contained in:
@@ -65,6 +65,9 @@ image.resizeImage = function (data, callback) {
|
||||
}
|
||||
},
|
||||
function (image, next) {
|
||||
if (data.write === false) {
|
||||
return next();
|
||||
}
|
||||
image.write(data.target || data.path, next);
|
||||
}
|
||||
], function (err) {
|
||||
|
||||
@@ -57,7 +57,8 @@ module.exports = function (User) {
|
||||
path: picture.path,
|
||||
extension: extension,
|
||||
width: imageDimension,
|
||||
height: imageDimension
|
||||
height: imageDimension,
|
||||
write: false,
|
||||
}, next);
|
||||
},
|
||||
function (next) {
|
||||
|
||||
Reference in New Issue
Block a user