Commit 6404a060 authored by 陈家荣's avatar 陈家荣

更改照片墙子话题参与用户数

parent ea64a2be
......@@ -770,11 +770,6 @@ function getSubThreads(doc, sort, callback) {
pid: doc._id,
status: 1
};
countAllByFid(conditions, function(err, count) {
if (err) {
console.error(err);
callback(err, null);
} else {
var sortBy = '-top -quality -created';
if (sort) {
sortBy = sort;
......@@ -797,7 +792,7 @@ function getSubThreads(doc, sort, callback) {
}
});
var obj = {};
obj.total = count;
obj.total = list.length;
obj.items = list;
var newDoc = doc.toObject();
......@@ -806,8 +801,6 @@ function getSubThreads(doc, sort, callback) {
callback(null, newDoc);
}
});
}
});
}
function getAllThreadByFidHelp(conditions, pageNo, pageSize, sort, callback) {
......
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