diff --git a/files/helpers/media.py b/files/helpers/media.py index 4e55abb3d..617961607 100644 --- a/files/helpers/media.py +++ b/files/helpers/media.py @@ -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/'):