fix polls on walls
parent
8f50c90b17
commit
c505eddd9d
|
@ -280,8 +280,9 @@ class Comment(Base):
|
||||||
if o.voted(v): body += " checked"
|
if o.voted(v): body += " checked"
|
||||||
|
|
||||||
if v:
|
if v:
|
||||||
sub = self.post.sub
|
if self.parent_submission:
|
||||||
if sub in {'furry','vampire','racist','femboy'} and not v.house.lower().startswith(sub): body += ' disabled '
|
sub = self.post.sub
|
||||||
|
if sub in {'furry','vampire','racist','femboy'} and not v.house.lower().startswith(sub): body += ' disabled '
|
||||||
body += f''' data-nonce="{g.nonce}" data-onclick="poll_vote_{o.exclusive}('{o.id}', '{self.id}', 'comment')"'''
|
body += f''' data-nonce="{g.nonce}" data-onclick="poll_vote_{o.exclusive}('{o.id}', '{self.id}', 'comment')"'''
|
||||||
else:
|
else:
|
||||||
body += f''' data-nonce="{g.nonce}" data-onclick="poll_vote_no_v()"'''
|
body += f''' data-nonce="{g.nonce}" data-onclick="poll_vote_no_v()"'''
|
||||||
|
|
Loading…
Reference in New Issue