Permalink
Browse files

Only show non-spam posts

  • Loading branch information...
SlashmanX committed Mar 25, 2013
1 parent 5c14177 commit 9d66c06505fd65cbff2b1ab13957f5d5a300f611
Showing with 1 addition and 1 deletion.
  1. +1 −1 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').sort({postedOn: 1}).exec(function(e, posts) {
+ Post.find({topic: tid}).populate('author').populate('editHistory.editedBy').where('isSpam', false).sort({postedOn: 1}).exec(function(e, posts) {
if (e) callback(e)
else {
callback(null, posts)

0 comments on commit 9d66c06

Please sign in to comment.