|
|
@ -413,9 +413,6 @@ module.exports = function (Topics) {
|
|
|
|
posts.getPostField(replyPids[0], 'timestamp', function (err, timestamp) {
|
|
|
|
posts.getPostField(replyPids[0], 'timestamp', function (err, timestamp) {
|
|
|
|
next(err, utils.toISOString(timestamp));
|
|
|
|
next(err, utils.toISOString(timestamp));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
|
|
|
"count": function (next) {
|
|
|
|
|
|
|
|
db.sortedSetCard('pid:' + pid + ':replies', next);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, function (err, replies) {
|
|
|
|
}, function (err, replies) {
|
|
|
|
if (replies.users.length > 5) {
|
|
|
|
if (replies.users.length > 5) {
|
|
|
@ -423,6 +420,8 @@ module.exports = function (Topics) {
|
|
|
|
replies.hasMore = true;
|
|
|
|
replies.hasMore = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
replies.count = replyPids.length;
|
|
|
|
|
|
|
|
|
|
|
|
next(err, replies);
|
|
|
|
next(err, replies);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|