From 25b8913b8da38b71d6eaab1931c037ca327385e4 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 12 Mar 2023 20:03:15 +0200 Subject: [PATCH] fix 500 error --- 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 00a077346..b9dafb0ca 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -71,7 +71,7 @@ def add_options(self, body, v): if kind == 'post': sub = self.sub else: - sub = self.parent.sub + sub = self.post.sub if sub in {'furry','vampire','racist','femboy'} and not v.house.lower().startswith(sub): option_body += ' disabled ' option_body += f''' data-nonce="{g.nonce}" data-onclick="poll_vote_{o.exclusive}('{o.id}', '{self.id}', '{kind}')"'''