mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user