mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
chore: forgot to remove bad code
This commit is contained in:
@@ -187,12 +187,12 @@ Mocks.post = async (objects) => {
|
||||
}
|
||||
|
||||
switch (true) {
|
||||
case image && image.hasOwnProperty('url') && image.url && mime.getType(image.url).startsWith('image/'): {
|
||||
case image && image.hasOwnProperty('url') && image.url: {
|
||||
image = image.url;
|
||||
break;
|
||||
}
|
||||
|
||||
case image && typeof image === 'string' && mime.getType(image).startsWith('image/'): {
|
||||
case image && typeof image === 'string': {
|
||||
// no change
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user