Commit 07b5828e authored by 陈家荣's avatar 陈家荣

查询照片墙和子话题的子文章时,过滤被评论的

parent 7c2577cf
...@@ -766,7 +766,8 @@ exports.getAllCountByFid = function(conditions, callback) { ...@@ -766,7 +766,8 @@ exports.getAllCountByFid = function(conditions, callback) {
//获取话题、照片墙子文章数据 //获取话题、照片墙子文章数据
function getSubThreads(doc, sort, callback) { function getSubThreads(doc, sort, callback) {
var conditions = { var conditions = {
pid: doc._id pid: doc._id,
status: 1
}; };
countAllByFid(conditions, function(err, count) { countAllByFid(conditions, function(err, count) {
if (err) { if (err) {
......
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