UserController: check item._deleted rather than item.deleted.

Comment.add_props can overwrite comment.deleted to be False even
when comment._deleted is True.
This commit is contained in:
Brian Simpson
2014-03-21 17:07:34 -04:00
parent 3c2a582c9d
commit bb31bd5d8f

View File

@@ -584,7 +584,7 @@ class UserController(ListingController):
if self.where == 'gilded' and item.gildings <= 0:
return False
if self.where == 'deleted' and not getattr(item, 'deleted', False):
if self.where == 'deleted' and not item._deleted:
return False
is_promoted = getattr(item, "promoted", None) is not None