Commit b1d02ca4 authored by 张淼's avatar 张淼

1

parent c1f30770
......@@ -42,6 +42,11 @@ var ForumThreadSchema = new Schema({
},
icon: { //话题图标
type: String
},
address: {//地址
country:{type: String,default:''},
province:{type: String,default:''},
city:{type: String,default:''},
},
order_idx: { //论坛排序
type: Number,
......
......@@ -152,7 +152,7 @@ function populateComment(doc, callback){
var asyncTasks = [];
doc.comments.forEach(function(comment){
asyncTasks.push(function(callback) {
ForumComment.populate(comment, {path:'from to', select:'uid nickName icon comments'} , function(err, c){
ForumComment.populate(comment, {path:'from to', select:'uid nickName icon displayName displayIcon comments'} , function(err, c){
if (err) {
console.error(err);
callback(null, 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