make image on localhost work

pull/138/head
Aevann 2023-03-06 19:20:06 +02:00
parent 0a30a7baef
commit a6121849d4
1 changed files with 1 additions and 0 deletions

View File

@ -233,6 +233,7 @@ def process_image(filename:str, v, resize=0, trim=False, uploader_id:Optional[in
)
db.add(media)
if IS_LOCALHOST: return filename
return f'https://i.{SITE}{filename}'