From d3b14c3f30f5f0fca03de69f748d143ee546cfb2 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 6 Mar 2023 23:48:31 +0200 Subject: [PATCH] use the i subdomain in rdrama only --- files/helpers/media.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/files/helpers/media.py b/files/helpers/media.py index 72e0fd741..5c381b993 100644 --- a/files/helpers/media.py +++ b/files/helpers/media.py @@ -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):