|
|
@ -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);
|
|
|
|
});
|
|
|
|
});
|
|
|
|