fix buildCommentList() to not return early if root comment is hidden

This commit is contained in:
Iris Lightshard 2020-04-30 11:19:08 -04:00
parent bd3b661706
commit b0f108393f
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398

View file

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