Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Only show non-spam posts in topic

  • Loading branch information...
commit 7551d274f360073ff441bf89413f395fce2221f9 1 parent 9d66c06
@SlashmanX authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  server/modules/post-manager.js
View
2  server/modules/post-manager.js
@@ -117,7 +117,7 @@ PM.getPostInfo = function(pid, callback)
}
PM.getTopic = function(tid, callback)
{
- Post.find({topic: tid}).populate('author').populate('editHistory.editedBy').where('isSpam', false).sort({postedOn: 1}).exec(function(e, posts) {
+ Post.find({topic: tid}).where('isSpam', {$ne : true}).populate('author').populate('editHistory.editedBy').sort({postedOn: 1}).exec(function(e, posts) {
if (e) callback(e)
else {
callback(null, posts)
Please sign in to comment.
Something went wrong with that request. Please try again.