fix snappy quote duplicate detection

master
Aevann 2024-04-11 09:09:35 +02:00
parent 0a8dc29f0e
commit a168d67543
1 changed files with 1 additions and 0 deletions

View File

@ -188,6 +188,7 @@ def comment(v):
if len(body) > COMMENT_BODY_LENGTH_LIMIT:
abort(400, f'Comment body is too long (max {COMMENT_BODY_LENGTH_LIMIT} characters)')
body = body.replace('\r', '')
if v.admin_level >= PERMS['USE_ADMIGGER_THREADS'] and posting_to_post and post_target.id == SNAPPY_THREAD and level == 1:
with open(f"snappy_{SITE_NAME}.txt", "r+") as f:
body_for_checking = '\n[para]\n' + body.lower() + '\n[para]\n'