From f2e2e059587b1278f67adad2c438f1eac78ed828 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 11 Jul 2022 23:21:25 +0200 Subject: [PATCH] don't collapse comment chains --- files/classes/comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/classes/comment.py b/files/classes/comment.py index 32aed8efe..f88853435 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -375,7 +375,7 @@ class Comment(Base): if path == '/admin/removed/comments': return False - if f'/{self.id}' in path: return False + if '?context' in path or f'/{self.id}' in path: return False if self.over_18 and not (v and v.over_18) and not (self.post and self.post.over_18): return True