feat(forums): show attach flag if topic or reply has attach file

This commit is contained in:
OldHawk
2017-07-19 18:00:17 +08:00
parent 841e342c41
commit 74b2d118bf
7 changed files with 41 additions and 7 deletions

View File

@@ -161,7 +161,9 @@ exports.forumsSearch = function (req, res) {
condition.$or = [
{title: {'$all': keysA}},
{content: {'$all': keysA}},
{'_replies.content': {'$all': keysA}}
{'_replies.content': {'$all': keysA}},
{'_attach.filename': {'$all': keysA}},
{'_replies._attach.filename': {'$all': keysA}}
];
}