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

子话题瘦身

parent 852a2246
...@@ -28,6 +28,10 @@ var threadFields = { ...@@ -28,6 +28,10 @@ var threadFields = {
}; };
var subThreadFields = {
from:1
};
/** /**
* 过滤 html 标签正则 * 过滤 html 标签正则
* @type {RegExp} * @type {RegExp}
...@@ -659,7 +663,7 @@ function getSubThreads(doc, sort, callback) { ...@@ -659,7 +663,7 @@ function getSubThreads(doc, sort, callback) {
if (sort) { if (sort) {
sortBy = sort; sortBy = sort;
} }
ForumThread.find(conditions).populate('from', 'uid mid nickName icon').sort(sortBy).exec(function(err, docs) { ForumThread.find(conditions, subThreadFields).populate('from', 'uid mid nickName icon').sort(sortBy).exec(function(err, docs) {
if (err) { if (err) {
console.error(err); console.error(err);
callback(err, null); 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