From b0f108393fa38ad9bc97d0a4969399561f8c37dc Mon Sep 17 00:00:00 2001 From: Derek Stevens Date: Thu, 30 Apr 2020 11:19:08 -0400 Subject: [PATCH] fix buildCommentList() to not return early if root comment is hidden --- views.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/views.py b/views.py index 0b689f0..cee4c36 100644 --- a/views.py +++ b/views.py @@ -16,13 +16,13 @@ def buildCommentList(cThread): current = cThread.root_comment if not current.hidden: cList = [ current ] - while current.next: - current = current.next - if not current.hidden: - if cList: - cList.append(current) - else: - cList = [ current ] + while current.next: + current = current.next + if not current.hidden: + if cList: + cList.append(current) + else: + cList = [ current ] return cList @xframe_options_sameorigin