mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 22:45:46 +01:00
closed #536
This commit is contained in:
@@ -807,8 +807,12 @@ module.exports.init = function(io) {
|
||||
var start = data.after,
|
||||
end = start + 9;
|
||||
|
||||
topics.getLatestTopics(uid, start, end, data.term, function(latestTopics) {
|
||||
callback(latestTopics);
|
||||
topics.getLatestTopics(uid, start, end, data.term, function(err, latestTopics) {
|
||||
if (!err) {
|
||||
callback(latestTopics);
|
||||
} else {
|
||||
winston.error('[socket api:topics.loadMoreRecentTopics] ' + err.message);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user