From 127eae8379f097537be5ef7929d580f2c7778c6b Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 17 Mar 2023 15:04:58 +0200 Subject: [PATCH] fix image upload in localhost --- files/helpers/media.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/media.py b/files/helpers/media.py index fe7fd1d3a..bd4c4732f 100644 --- a/files/helpers/media.py +++ b/files/helpers/media.py @@ -269,7 +269,7 @@ def process_image(filename:str, v, resize=0, trim=False, uploader_id:Optional[in ) db.add(media) - if IS_LOCALHOST: return f'![]({filename})' + if IS_LOCALHOST: return f'{SITE_FULL}{filename}' return f'https://i.{SITE}{filename}'