|
|
@ -244,7 +244,10 @@ var async = require('async'),
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
Topics.getTopicWithPosts = function(tid, set, uid, start, end, reverse, callback) {
|
|
|
|
Topics.getTopicWithPosts = function(tid, set, uid, start, end, reverse, callback) {
|
|
|
|
|
|
|
|
if (isNaN(start) || isNaN(end)) {
|
|
|
|
|
|
|
|
var e = new Error('TOO LARGE');
|
|
|
|
|
|
|
|
winston.warn('IS_NAN_CHECK set, start, end, uid, tid', set, start, end, uid, tid, e.stack);
|
|
|
|
|
|
|
|
}
|
|
|
|
Topics.getTopicData(tid, function(err, topicData) {
|
|
|
|
Topics.getTopicData(tid, function(err, topicData) {
|
|
|
|
if (err || !topicData) {
|
|
|
|
if (err || !topicData) {
|
|
|
|
return callback(err || new Error('[[error:no-topic]]'));
|
|
|
|
return callback(err || new Error('[[error:no-topic]]'));
|
|
|
|