From dd14df0e4410f5053eb8b9c7b2cf403abb7ad7ef Mon Sep 17 00:00:00 2001 From: Deimos Date: Thu, 13 Sep 2018 15:14:09 -0600 Subject: [PATCH] Prevent overriding uncollapsed "leaf" comments --- tildes/tildes/models/comment/comment_tree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tildes/tildes/models/comment/comment_tree.py b/tildes/tildes/models/comment/comment_tree.py index 3c5a79a..1b12951 100644 --- a/tildes/tildes/models/comment/comment_tree.py +++ b/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 # 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" return