Commit c7ec4922 authored by 杨翌文's avatar 杨翌文

ok

parent 9ac63213
......@@ -214,7 +214,7 @@ exports.getThreadById = function(tid, callback) {
var conditions = {
_id: tid
};
ForumThread.findOne(conditions, singleThreadFields).populate('from').populate('info').populate('share').exec(function(err, doc) {
ForumThread.findOne(conditions, singleThreadFields).populate('from','uid mid nickName').populate('info','name icon').populate('share').exec(function(err, doc) {
if (err) {
console.error(err);
callback(err, null);
......
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