mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
removed commented out code
This commit is contained in:
@@ -216,15 +216,7 @@ var async = require('async'),
|
|||||||
}
|
}
|
||||||
|
|
||||||
async.parallel({
|
async.parallel({
|
||||||
// mainPost: function(next) {
|
posts: async.apply(getMainPostAndReplies, topicData, set, uid, start, end, reverse),
|
||||||
// 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);
|
|
||||||
},
|
|
||||||
category: async.apply(Topics.getCategoryData, tid),
|
category: async.apply(Topics.getCategoryData, tid),
|
||||||
threadTools: async.apply(plugins.fireHook, 'filter:topic.thread_tools', {topic: topicData, uid: uid, tools: []}),
|
threadTools: async.apply(plugins.fireHook, 'filter:topic.thread_tools', {topic: topicData, uid: uid, tools: []}),
|
||||||
tags: async.apply(Topics.getTopicTagsObjects, tid),
|
tags: async.apply(Topics.getTopicTagsObjects, tid),
|
||||||
@@ -234,7 +226,6 @@ var async = require('async'),
|
|||||||
return callback(err);
|
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.posts = results.posts;
|
||||||
topicData.category = results.category;
|
topicData.category = results.category;
|
||||||
topicData.thread_tools = results.threadTools.tools;
|
topicData.thread_tools = results.threadTools.tools;
|
||||||
|
|||||||
Reference in New Issue
Block a user