mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-31 19:15:58 +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');
|
||||
}
|
||||
|
||||
if (postData.uploadedImages) {
|
||||
try {
|
||||
postData.uploadedImages = JSON.parse(postData.uploadedImages);
|
||||
} catch(err) {
|
||||
postData.uploadedImages = [];
|
||||
winston.err(err);
|
||||
}
|
||||
} else {
|
||||
postData.uploadedImages = [];
|
||||
}
|
||||
|
||||
postTools.parse(postData.content, function(err, content) {
|
||||
postTools.parse(postData.content, function(err, content) {
|
||||
postData.content = content;
|
||||
_callback(null, postData);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user