diff --git a/judge/comments.py b/judge/comments.py index d99f11e..08d1cb7 100644 --- a/judge/comments.py +++ b/judge/comments.py @@ -166,6 +166,7 @@ class CommentedDetailView(TemplateResponseMixin, SingleObjectMixin, View): context["comment_lock"] = self.is_comment_locked() queryset = ( queryset.select_related("author__user") + .filter(hidden=False) .defer("author__about") .annotate(revisions=Count("versions")) )