forked from MarseyWorld/MarseyWorld
use the i subdomain in rdrama only
parent
5d266835d0
commit
d3b14c3f30
|
@ -255,8 +255,9 @@ 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}'
|
||||
if SITE == 'rdrama.net': return f'https://i.{SITE}{filename}'
|
||||
return filename
|
||||
|
||||
|
||||
|
||||
def process_dm_images(v, user, body):
|
||||
|
|
Loading…
Reference in New Issue