removed filterBannedPosts method that seemed unused -- monkey-patching

install script to remember old values (if present, otherwise use defaults)
This commit is contained in:
Julian Lam
2013-11-03 11:53:44 -05:00
parent 7296b701fa
commit 5a96f5f64b
3 changed files with 15 additions and 16 deletions

View File

@@ -132,12 +132,6 @@ var RDB = require('./redis.js'),
});
};
Posts.filterBannedPosts = function(posts) {
return posts.filter(function(post) {
return post.user_banned === '0';
});
}
// TODO: this function is never called except from some debug route. clean up?
Posts.getPostData = function(pid, callback) {
RDB.hgetall('post:' + pid, function(err, data) {
@@ -146,8 +140,9 @@ var RDB = require('./redis.js'),
if (!err) callback(newData);
else callback(data);
});
} else
console.log(err);
} else {
winston.error(err);
}
});
}