put a space before file link too
parent
0b0ad438a8
commit
8d096e1123
|
@ -60,7 +60,7 @@ def process_files(files, v, body):
|
|||
elif file.content_type.startswith('video/'):
|
||||
body = body.replace(f'[{file.filename}]', f' {process_video(file, v)} ', 1)
|
||||
elif file.content_type.startswith('audio/'):
|
||||
body = body.replace(f'[{file.filename}]', f"{SITE_FULL}{process_audio(file, v)} ", 1)
|
||||
body = body.replace(f'[{file.filename}]', f' {SITE_FULL}{process_audio(file, v)} ', 1)
|
||||
else:
|
||||
abort(415)
|
||||
|
||||
|
|
|
@ -215,7 +215,7 @@ def comment(v:User):
|
|||
elif file.content_type.startswith('video/'):
|
||||
body = body.replace(f'[{file.filename}]', f' {process_video(file, v)} ', 1)
|
||||
elif file.content_type.startswith('audio/'):
|
||||
body = body.replace(f'[{file.filename}]', f"{SITE_FULL}{process_audio(file, v)} ", 1)
|
||||
body = body.replace(f'[{file.filename}]', f' {SITE_FULL}{process_audio(file, v)} ', 1)
|
||||
else:
|
||||
abort(415)
|
||||
|
||||
|
|
Loading…
Reference in New Issue