From 84a19e9baa2ab2c9538e15f26f16d213971b92ac Mon Sep 17 00:00:00 2001 From: Dylan Date: Wed, 16 Apr 2025 15:10:43 +0100 Subject: [PATCH] Add old.vxtwitter as a valid subdomain for legacy embeds --- twitfix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitfix.py b/twitfix.py index 70ef6ee..1ef763e 100644 --- a/twitfix.py +++ b/twitfix.py @@ -303,7 +303,7 @@ def twitfix(sub_path): user_agent = "unknown" isApiRequest=request.url.startswith("https://api.vx") or request.url.startswith("http://api.vx") - if not isApiRequest and request.url.startswith("https://l.vx") and "Discord" in user_agent: + if not isApiRequest and (request.url.startswith("https://l.vx") or request.url.startswith("https://old.vx")) and "Discord" in user_agent: user_agent = user_agent.replace("Discord","LegacyEmbed") # TODO: Clean up; This is a hacky fix to make the new activity embed not trigger if sub_path in staticFiles: if 'path' not in staticFiles[sub_path] or staticFiles[sub_path]["path"] == None: