From 4bd57d42eed160fe3d9e7e255abb65b003fa5d95 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 29 Apr 2023 23:19:34 +0200 Subject: [PATCH] fix first-party embedding --- files/helpers/config/const.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/files/helpers/config/const.py b/files/helpers/config/const.py index c3d3836fe..bc836ba30 100644 --- a/files/helpers/config/const.py +++ b/files/helpers/config/const.py @@ -56,9 +56,11 @@ PUSH_NOTIF_LIMIT = 1000 IS_LOCALHOST = SITE == "localhost" or SITE == "127.0.0.1" or SITE.startswith("192.168.") or SITE.endswith(".local") if IS_LOCALHOST: + SITE_IMAGES = SITE SITE_FULL = 'http://' + SITE SITE_FULL_IMAGES = SITE_FULL else: + SITE_IMAGES = 'i.' + SITE SITE_FULL = 'https://' + SITE SITE_FULL_IMAGES = 'https://i.' + SITE @@ -962,9 +964,12 @@ approved_embed_hosts = { ### First-Party SITE, + SITE_IMAGES, 'rdrama.net', + 'i.rdrama.net', 'watchpeopledie.tv', - 'fsdfsd.net', + 'i.watchpeopledie.tv', + 'videos.watchpeopledie.tv', ### Third-Party Image Hosts # TODO: Might be able to keep these even if we media proxy?