Commit b394d955 authored by 陈志良's avatar 陈志良

社区分享设置更新

parent a2cc8fae
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