SearchBuilder: don't keep items with deleted authors.

This commit is contained in:
Neil Williams
2012-06-04 12:14:44 -07:00
parent 555c02ad62
commit dbaa48e324

View File

@@ -482,6 +482,8 @@ class SearchBuilder(IDBuilder):
# 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