broken posts

v1.18.x
Baris Usakli 12 years ago
parent 34432773d6
commit 96df6abe85

@ -76,11 +76,6 @@ marked.setOptions({
RDB.lrange('tid:' + tid + ':posts', start, end, function(err, pids) { RDB.lrange('tid:' + tid + ':posts', start, end, function(err, pids) {
RDB.handle(err); RDB.handle(err);
if(pids.length === 0){
callback(false);
return;
}
var content = [], uid = [], timestamp = [], pid = [], post_rep = [], editor = [], editTime = [], deleted = []; var content = [], uid = [], timestamp = [], pid = [], post_rep = [], editor = [], editTime = [], deleted = [];
for (var i=0, ii=pids.length; i<ii; i++) { for (var i=0, ii=pids.length; i<ii; i++) {

Loading…
Cancel
Save