nextStart changes, fixed move topic notification text

This commit is contained in:
barisusakli
2014-10-02 17:46:39 -04:00
parent 5ba88b7152
commit 6aa53b8323
8 changed files with 49 additions and 58 deletions

View File

@@ -17,11 +17,18 @@ module.exports = function(Topics) {
Topics.getLatestTopics = function(uid, start, end, term, callback) {
Topics.getLatestTids(start, end, term, function(err, tids) {
if(err) {
if (err) {
return callback(err);
}
Topics.getTopics('topics:recent', uid, tids, callback);
Topics.getTopics('topics:recent', uid, tids, function(err, data) {
if (err) {
return callback(err);
}
data.nextStart = end + 1;
callback(null, data);
});
});
};