fix snappy quote duplicate detection
parent
0a8dc29f0e
commit
a168d67543
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue