stop auto-apppending ![](, pointless now

pull/138/head
Aevann 2023-03-06 20:48:31 +02:00
parent f9f76f9c47
commit 4b6384d71d
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ def process_files(files, v, body):
name = f'/images/{time.time()}'.replace('.','') + '.webp'
file.save(name)
url = process_image(name, v)
body = body.replace(f'[{file.filename}]', f"![]({url})", 1)
body = body.replace(f'[{file.filename}]', url, 1)
elif file.content_type.startswith('video/'):
body = body.replace(f'[{file.filename}]', f"{SITE_FULL}{process_video(file, v)}", 1)
elif file.content_type.startswith('audio/'):