backport unread inf scroll fix

This commit is contained in:
Barış Soner Uşaklı
2019-01-08 18:57:12 -05:00
committed by GitHub
parent 1cdb6af5dc
commit 53c13976b6

View File

@@ -51,7 +51,7 @@ module.exports = function (Topics) {
if (!topicData.length) {
return next(null, unreadTopics);
}
Topics.calculateTopicIndices(topicData, params.start);
unreadTopics.topics = topicData;
unreadTopics.nextStart = params.stop + 1;
next(null, unreadTopics);