mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 15:30:39 +01:00
fix: logic failure causing remote posts with image to not parse properly, #13164
This commit is contained in:
@@ -190,7 +190,7 @@ Mocks.post = async (objects) => {
|
||||
}
|
||||
|
||||
switch (true) {
|
||||
case image && image.hasOwnProperty('url') && image.url: {
|
||||
case image && image.hasOwnProperty('url') && !!image.url: {
|
||||
image = image.url;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user