Browse Source

Prevent overriding uncollapsed "leaf" comments

merge-requests/37/head
Deimos 6 years ago
parent
commit
dd14df0e44
  1. 2
      tildes/tildes/models/comment/comment_tree.py

2
tildes/tildes/models/comment/comment_tree.py

@ -258,7 +258,7 @@ class CommentInTree(ObjectProxy):
# if it doesn't have any uncollapsed descendants, collapse the whole branch # if it doesn't have any uncollapsed descendants, collapse the whole branch
# and stop looking any deeper into it # and stop looking any deeper into it
if not self.has_uncollapsed_descendant:
if not self.has_uncollapsed_descendant and not self.collapsed_state:
self.collapsed_state = "full" self.collapsed_state = "full"
return return

Loading…
Cancel
Save