fix 500 error

pull/78/head
Aevann1 2022-12-16 19:45:01 +02:00
parent 7c389bbdfd
commit f54b9a0259
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ def comment(v:User):
execute_basedbot(c, level, body, post_target, v)
if post_target.id not in ADMIGGER_THREADS and v.agendaposter and not v.marseyawarded and AGENDAPOSTER_PHRASE not in c.body.lower() and post_target.sub != 'chudrama':
if post_target.id not in ADMIGGER_THREADS and v.agendaposter and not v.marseyawarded and AGENDAPOSTER_PHRASE not in c.body.lower() and not (posting_to_submission and post_target.sub == 'chudrama'):
c.is_banned = True
c.ban_reason = "AutoJanny"
g.db.add(c)