mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
removed commented out code
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user