diff --git a/files/classes/comment.py b/files/classes/comment.py index f6d704f44..131c13574 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -377,7 +377,8 @@ class Comment(Base): if c.voted(v): body += " checked" if v: - if self.post.sub in ('furry','vampire','racist','femboy') and not (v.house and v.house.lower().startswith(sub)): body += ' disabled ' + sub = self.post.sub + if sub in ('furry','vampire','racist','femboy') and not (v.house and v.house.lower().startswith(sub)): body += ' disabled ' body += f''' onchange="poll_vote('{c.id}', 'comment')"''' else: body += f''' onchange="poll_vote_no_v('{c.id}', '{self.id}')"''' body += f'''>