fixed home loading

This commit is contained in:
Baris Usakli
2013-08-08 14:30:42 -04:00
parent e69928d624
commit e979d1bf0d
3 changed files with 13 additions and 5 deletions

View File

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