Commit 5e4540d0 authored by 陈志良's avatar 陈志良

Merge branch '0922_forum_share'

parents 8dec21ca da730ead
This diff is collapsed.
...@@ -262,6 +262,12 @@ exports.getThreadById = function(tid, callback) { ...@@ -262,6 +262,12 @@ exports.getThreadById = function(tid, callback) {
}); });
}; };
//根据ID获取文章 //根据ID获取文章
exports.getThreadByIdSimple = function(conditions, callback) {
ForumThread.findOne(conditions).populate('from info share pid').exec(function(err, doc) {
callback(err, doc);
});
};
//根据ID获取文章
exports.getThreadByIdNoLimit = function(tid, callback) { exports.getThreadByIdNoLimit = function(tid, callback) {
async.parallel([ async.parallel([
function(cb) { function(cb) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment