fix buildCommentList() to not return early if root comment is hidden
This commit is contained in:
parent
bd3b661706
commit
b0f108393f
1 changed files with 7 additions and 7 deletions
14
views.py
14
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
|
||||
|
|
Loading…
Reference in a new issue