fix minor annoyance when uploading files

pull/142/head
Aevann 2023-03-21 20:35:27 +02:00
parent 0dee871737
commit 0a12e0c069
2 changed files with 2 additions and 1 deletions

View File

@ -64,7 +64,7 @@ def process_files(files, v, body):
else:
abort(415)
return body
return body.replace('\n ', '\n')
def process_audio(file, v):

View File

@ -219,6 +219,7 @@ def comment(v:User):
else:
abort(415)
body = body.replace('\n ', '\n')
body = body.strip()[:COMMENT_BODY_LENGTH_LIMIT]
if v.admin_level >= PERMS['USE_ADMIGGER_THREADS'] and posting_to_submission and post_target.id == SNAPPY_THREAD and level == 1 and body not in SNAPPY_QUOTES: