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) {
|
function (image, next) {
|
||||||
|
if (data.write === false) {
|
||||||
|
return next();
|
||||||
|
}
|
||||||
image.write(data.target || data.path, next);
|
image.write(data.target || data.path, next);
|
||||||
}
|
}
|
||||||
], function (err) {
|
], function (err) {
|
||||||
|
|||||||
@@ -57,7 +57,8 @@ module.exports = function (User) {
|
|||||||
path: picture.path,
|
path: picture.path,
|
||||||
extension: extension,
|
extension: extension,
|
||||||
width: imageDimension,
|
width: imageDimension,
|
||||||
height: imageDimension
|
height: imageDimension,
|
||||||
|
write: false,
|
||||||
}, next);
|
}, next);
|
||||||
},
|
},
|
||||||
function (next) {
|
function (next) {
|
||||||
|
|||||||
Reference in New Issue
Block a user