mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
removed unusued uploadedImages property
This commit is contained in:
11
src/posts.js
11
src/posts.js
@@ -370,17 +370,6 @@ 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) {
|
||||
postData.content = content;
|
||||
_callback(null, postData);
|
||||
|
||||
Reference in New Issue
Block a user