fix image upload in localhost

pull/142/head
Aevann 2023-03-17 15:04:58 +02:00
parent 2d8434bfdc
commit 127eae8379
1 changed files with 1 additions and 1 deletions

View File

@ -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}'