Fix #261: only show lineal parents in contexts.

This commit is contained in:
TLSM 2022-11-05 19:43:30 -04:00 committed by Ben Rog-Wilhelm
parent 72995ef3f1
commit 1018cf3412

View file

@ -89,6 +89,7 @@ def post_pid_comment_cid(cid, pid=None, anything=None, v=None, sub=None):
comment_info = comment
c = comment
while context and c.level > 1:
c.parent_comment.replies2 = [c]
c = c.parent_comment
context -= 1
top_comment = c