fix 500 error when doing polls on walls
parent
6be30b2881
commit
31c65429a5
|
@ -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 '
|
||||
|
|
Loading…
Reference in New Issue