From 9abdb5a1e75d36c30a58ce76a190ce741bd8ef5c Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 28 Jul 2023 00:07:47 +0300 Subject: [PATCH] fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4628281#context --- 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 a71a6a974..d89aa2ab9 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -387,7 +387,7 @@ class Comment(Base): if comment_link_regex.search(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 + if self.over_18 and not (v and v.over_18): return True if self.is_banned: return True