v1.18.x
Barış Soner Uşaklı 8 years ago
parent 6485108dfd
commit 80ea9e9797

@ -430,7 +430,8 @@ module.exports = function (Topics) {
count: replyPids.length, count: replyPids.length,
timestampISO: replyPids.length ? utils.toISOString(pidMap[replyPids[0]].timestamp) : undefined, timestampISO: replyPids.length ? utils.toISOString(pidMap[replyPids[0]].timestamp) : undefined,
}; };
replyPids.sort(function(a, b) {
replyPids.sort(function (a, b) {
return parseInt(a, 10) - parseInt(b, 10); return parseInt(a, 10) - parseInt(b, 10);
}); });
@ -444,8 +445,8 @@ module.exports = function (Topics) {
if (currentData.users.length > 5) { if (currentData.users.length > 5) {
currentData.users.pop(); currentData.users.pop();
currentData.hasMore = true; currentData.hasMore = true;
} }
return currentData; return currentData;
}); });

Loading…
Cancel
Save