diff --git a/files/routes/comments.py b/files/routes/comments.py index 99a036a320..028d66e50c 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -174,7 +174,8 @@ def api_comment(v): if request.files.get("file") and request.headers.get("cf-ipcountry") != "T1": file=request.files["file"] if file.content_type.startswith('image/'): - body += f"\n\n![]({process_image(file)})" + file = process_image(file) + body += f"\n\n![]({file})" if v.admin_level == 3: if parent_post.id == 37696: filename = 'files/assets/images/Drama/sidebar/' + str(len(listdir('files/assets/images/Drama/sidebar'))+1) + '.webp'