forked from rDrama/rDrama
1
0
Fork 0

use the i subdomain in rdrama only

master
Aevann 2023-03-06 23:48:31 +02:00
parent 5d266835d0
commit d3b14c3f30
1 changed files with 3 additions and 2 deletions

View File

@ -255,8 +255,9 @@ 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 if SITE == 'rdrama.net': return f'https://i.{SITE}{filename}'
return f'https://i.{SITE}{filename}' return filename
def process_dm_images(v, user, body): def process_dm_images(v, user, body):