mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 10:06:13 +01:00
nextStart changes, fixed move topic notification text
This commit is contained in:
@@ -45,16 +45,10 @@ module.exports = function(Topics) {
|
||||
return callback(null, unreadTopics);
|
||||
}
|
||||
|
||||
db.sortedSetRevRank('topics:recent', topicData[topicData.length - 1].tid, function(err, rank) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
unreadTopics.topics = topicData;
|
||||
unreadTopics.nextStart = stop + 1;
|
||||
|
||||
unreadTopics.topics = topicData;
|
||||
unreadTopics.nextStart = parseInt(rank, 10) + 1;
|
||||
|
||||
callback(null, unreadTopics);
|
||||
});
|
||||
callback(null, unreadTopics);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user