mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-05 03:00:15 -04:00
Show childless deleted comments if c.user_is_admin.
This commit is contained in:
committed by
Max Goodman
parent
ce7776f59d
commit
1acb2351c5
@@ -187,7 +187,8 @@ class _CommentBuilder(Builder):
|
||||
|
||||
for cm in wrapped:
|
||||
# don't show spam with no children
|
||||
if cm.deleted and not cid_tree.has_key(cm._id):
|
||||
if (cm.deleted and not cid_tree.has_key(cm._id)
|
||||
and not c.user_is_admin):
|
||||
continue
|
||||
cm.num_children = num_children[cm._id]
|
||||
if cm.collapsed and cm._id in dont_collapse:
|
||||
|
||||
Reference in New Issue
Block a user