removed most of the debug

dont get more than 6 usernames for upvote tooltips
generatePostPaths wont check null pids
This commit is contained in:
barisusakli
2014-09-06 20:46:18 -04:00
parent 0ad42873d5
commit 57e204df8e
7 changed files with 28 additions and 55 deletions

View File

@@ -244,10 +244,6 @@ var async = require('async'),
};
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) {
if (err || !topicData) {
return callback(err || new Error('[[error:no-topic]]'));
@@ -268,10 +264,7 @@ var async = require('async'),
if (err) {
return next(err);
}
if (posts.length > 100) {
var e = new Error('TOO LARGE');
winston.warn('GET_TOPIC_WITH_POSTS set, start, end, uid, tid', set, start, end, uid, tid, e.stack);
}
Topics.addPostData(posts, uid, next);
});
});