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
|
current = cThread.root_comment
|
||||||
if not current.hidden:
|
if not current.hidden:
|
||||||
cList = [ current ]
|
cList = [ current ]
|
||||||
while current.next:
|
while current.next:
|
||||||
current = current.next
|
current = current.next
|
||||||
if not current.hidden:
|
if not current.hidden:
|
||||||
if cList:
|
if cList:
|
||||||
cList.append(current)
|
cList.append(current)
|
||||||
else:
|
else:
|
||||||
cList = [ current ]
|
cList = [ current ]
|
||||||
return cList
|
return cList
|
||||||
|
|
||||||
@xframe_options_sameorigin
|
@xframe_options_sameorigin
|
||||||
|
|
Loading…
Reference in a new issue