fix 500 error

pull/142/head
Aevann 2023-03-19 19:31:00 +02:00
parent 60e9175a63
commit 836c6ae29f
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ def comment(v:User):
torture = (v.agendaposter and not v.marseyawarded and not (posting_to_submission and post_target.sub == 'chudrama') and post_target.id not in ADMIGGER_THREADS)
body_html = sanitize(body_for_sanitize, limit_pings=5, count_emojis=not v.marsify, torture=torture)
if post_target.id not in ADMIGGER_THREADS and '!wordle' not in body.lower() and v.agendaposter_phrase not in body.lower():
if post_target.id not in ADMIGGER_THREADS and '!wordle' not in body.lower() and not (v.agendaposter and v.agendaposter_phrase in body.lower()):
existing = g.db.query(Comment.id).filter(
Comment.author_id == v.id,
Comment.deleted_utc == 0,