removed commented out code

v1.18.x
barisusakli 10 years ago
parent c63d5f4b7a
commit 2878bf6cfe

@ -216,15 +216,7 @@ var async = require('async'),
}
async.parallel({
// mainPost: function(next) {
// getMainPosts([topicData.mainPid], uid, next);
// },
// posts: function(next) {
// Topics.getTopicPosts(tid, set, start, end, uid, reverse, next);
// },
posts: function(next) {
getMainPostAndReplies(topicData, set, uid, start, end, reverse, next);
},
posts: async.apply(getMainPostAndReplies, topicData, set, uid, start, end, reverse),
category: async.apply(Topics.getCategoryData, tid),
threadTools: async.apply(plugins.fireHook, 'filter:topic.thread_tools', {topic: topicData, uid: uid, tools: []}),
tags: async.apply(Topics.getTopicTagsObjects, tid),
@ -234,7 +226,6 @@ var async = require('async'),
return callback(err);
}
//topicData.posts = Array.isArray(results.mainPost) && results.mainPost.length ? [results.mainPost[0]].concat(results.posts) : results.posts;
topicData.posts = results.posts;
topicData.category = results.category;
topicData.thread_tools = results.threadTools.tools;

Loading…
Cancel
Save