forked from rDrama/rDrama
fix minor annoyance when uploading files
parent
0dee871737
commit
0a12e0c069
|
@ -64,7 +64,7 @@ def process_files(files, v, body):
|
||||||
else:
|
else:
|
||||||
abort(415)
|
abort(415)
|
||||||
|
|
||||||
return body
|
return body.replace('\n ', '\n')
|
||||||
|
|
||||||
|
|
||||||
def process_audio(file, v):
|
def process_audio(file, v):
|
||||||
|
|
|
@ -219,6 +219,7 @@ def comment(v:User):
|
||||||
else:
|
else:
|
||||||
abort(415)
|
abort(415)
|
||||||
|
|
||||||
|
body = body.replace('\n ', '\n')
|
||||||
body = body.strip()[:COMMENT_BODY_LENGTH_LIMIT]
|
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:
|
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:
|
||||||
|
|
Loading…
Reference in New Issue