mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-27 07:48:16 -05:00
SearchBuilder: don't keep items with deleted authors.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user