mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 18:46:01 +01:00
fixed home loading
This commit is contained in:
@@ -60,7 +60,7 @@ var RDB = require('./redis.js'),
|
||||
function getPostSummary(pid, callback) {
|
||||
Posts.getPostFields(pid, ['pid', 'tid', 'content', 'uid', 'timestamp', 'deleted'], function(postData) {
|
||||
if(postData.deleted === '1') {
|
||||
return;
|
||||
return callback(null);
|
||||
}
|
||||
|
||||
Posts.addUserInfoToPost(postData, function() {
|
||||
@@ -81,6 +81,8 @@ var RDB = require('./redis.js'),
|
||||
async.eachSeries(pids, getPostSummary, function(err) {
|
||||
if(!err) {
|
||||
callback(returnData);
|
||||
} else {
|
||||
console.log(err);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user