fix 500 error when doing polls on walls

pull/143/head
Aevann 2023-04-29 18:43:08 +02:00
parent 6be30b2881
commit 31c65429a5
1 changed files with 3 additions and 1 deletions

View File

@ -73,8 +73,10 @@ def add_options(self, body, v):
if v:
if kind == 'post':
sub = self.sub
else:
elif self.parent_submission:
sub = self.post.sub
else:
sub = None
if sub in {'furry','vampire','racist','femboy'} and not v.house.lower().startswith(sub):
option_body += ' disabled '