mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
closes #1577
This commit is contained in:
@@ -146,7 +146,7 @@ var winston = require('winston'),
|
||||
|
||||
db.incrObjectFieldBy('global', 'postCount', isDelete ? -1 : 1);
|
||||
|
||||
posts.getPostFields(pid, ['tid', 'uid', 'content'], function(err, postData) {
|
||||
posts.getPostFields(pid, ['pid', 'tid', 'uid', 'content'], function(err, postData) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
@@ -170,7 +170,16 @@ var winston = require('winston'),
|
||||
function(next) {
|
||||
addOrRemoveFromCategoryRecentPosts(pid, postData.tid, isDelete, next);
|
||||
}
|
||||
], callback);
|
||||
], function(err) {
|
||||
if (!isDelete) {
|
||||
PostTools.parse(postData.content, function(err, parsed) {
|
||||
postData.content = parsed;
|
||||
callback(err, postData);
|
||||
});
|
||||
return;
|
||||
}
|
||||
callback(err, postData);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user