gfd
This commit is contained in:
parent
74a43a9840
commit
c4e41923f9
5 changed files with 15 additions and 17 deletions
|
@ -415,13 +415,11 @@ class Comment(Base):
|
|||
|
||||
if self.over_18 and not (v and v.over_18) and not (self.post and self.post.over_18): return True
|
||||
|
||||
if not v: return False
|
||||
|
||||
if v.filter_words and self.body and any(x in self.body for x in v.filter_words): return True
|
||||
|
||||
if self.is_banned: return True
|
||||
|
||||
|
||||
if path.startswith('/post') and (self.slots_result or self.blackjack_result) and len(self.body) <= 20 and self.level > 1: return True
|
||||
|
||||
if v and v.filter_words and self.body and any(x in self.body for x in v.filter_words): return True
|
||||
|
||||
return False
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue