Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Only show non-spam posts

  • Loading branch information...
commit 9d66c06505fd65cbff2b1ab13957f5d5a300f611 1 parent 5c14177
@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').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)
Please sign in to comment.
Something went wrong with that request. Please try again.