fix 500 error

pull/139/head
Aevann 2023-03-12 20:03:15 +02:00
parent 1d13c1f4da
commit 25b8913b8d
1 changed files with 1 additions and 1 deletions

View File

@ -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}')"'''