Show childless deleted comments if c.user_is_admin.

This commit is contained in:
Jason Harvey
2013-03-05 07:58:23 -08:00
committed by Max Goodman
parent ce7776f59d
commit 1acb2351c5

View File

@@ -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: