Skip to content
Browse files

SearchBuilder: don't keep items with deleted authors.

  • Loading branch information...
1 parent 555c02a commit dbaa48e32428285b42a14c1d45712c4dc7bd5002 @spladug spladug committed Jun 4, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 r2/r2/models/builder.py
View
2 r2/r2/models/builder.py
@@ -482,6 +482,8 @@ def keep_item(self,item):
# TODO: Consider a flag to disable this (and see listingcontroller.py)
if item._spam or item._deleted:
return False
+ elif getattr(item, "author", None) and item.author._deleted:
+ return False
else:
return True

0 comments on commit dbaa48e

Please sign in to comment.
Something went wrong with that request. Please try again.