forked from MarseyWorld/MarseyWorld
make image on localhost work
parent
0a30a7baef
commit
a6121849d4
|
@ -233,6 +233,7 @@ def process_image(filename:str, v, resize=0, trim=False, uploader_id:Optional[in
|
||||||
)
|
)
|
||||||
db.add(media)
|
db.add(media)
|
||||||
|
|
||||||
|
if IS_LOCALHOST: return filename
|
||||||
return f'https://i.{SITE}{filename}'
|
return f'https://i.{SITE}{filename}'
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue