forked from MarseyWorld/MarseyWorld
fix chud distingusih exception
parent
80a3368008
commit
ab926118d5
|
@ -873,6 +873,7 @@ def torture_chud(string, username):
|
|||
|
||||
def complies_with_chud(obj):
|
||||
#check for cases where u should leave
|
||||
if obj.distinguished: return True
|
||||
if not obj.chudded: return True
|
||||
if obj.author.hieroglyphs: return True
|
||||
|
||||
|
|
|
@ -275,7 +275,7 @@ def comment(v):
|
|||
if c.level == 1: c.top_comment_id = c.id
|
||||
else: c.top_comment_id = parent.top_comment_id
|
||||
|
||||
if not c.distinguished and not complies_with_chud(c):
|
||||
if not complies_with_chud(c):
|
||||
c.is_banned = True
|
||||
c.ban_reason = "AutoJanny for lack of chud phrase"
|
||||
g.db.add(c)
|
||||
|
|
|
@ -694,7 +694,7 @@ def submit_post(v, hole=None):
|
|||
else:
|
||||
stop(415)
|
||||
|
||||
if not p.distinguished and not p.draft and not complies_with_chud(p):
|
||||
if not p.draft and not complies_with_chud(p):
|
||||
p.is_banned = True
|
||||
p.ban_reason = "AutoJanny for lack of chud phrase"
|
||||
|
||||
|
|
Loading…
Reference in New Issue