mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
removed unusued uploadedImages property
This commit is contained in:
13
src/posts.js
13
src/posts.js
@@ -370,18 +370,7 @@ var RDB = require('./redis'),
|
|||||||
winston.err('invalid time value');
|
winston.err('invalid time value');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (postData.uploadedImages) {
|
postTools.parse(postData.content, function(err, content) {
|
||||||
try {
|
|
||||||
postData.uploadedImages = JSON.parse(postData.uploadedImages);
|
|
||||||
} catch(err) {
|
|
||||||
postData.uploadedImages = [];
|
|
||||||
winston.err(err);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
postData.uploadedImages = [];
|
|
||||||
}
|
|
||||||
|
|
||||||
postTools.parse(postData.content, function(err, content) {
|
|
||||||
postData.content = content;
|
postData.content = content;
|
||||||
_callback(null, postData);
|
_callback(null, postData);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user