From 413882f650a309095e5dadacc4ff7e9a23bc9031 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Mon, 8 Dec 2025 18:27:32 -0700 Subject: [PATCH] discord redirect hack for .mp4 --- src/routes/status.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/status.nim b/src/routes/status.nim index 3516a19..0ba5add 100644 --- a/src/routes/status.nim +++ b/src/routes/status.nim @@ -228,7 +228,7 @@ proc createStatusRouter*(cfg: Config) = # images = @[card.video.get().thumb] if rawVideo and video != "": - redirect(video) + redirect(video.replace("https://video.twimg.com", getUrlPrefix(cfg) & "/tvid").replace(".mp4", "")) elif rawImage and images.len > 0: if media == "photo" and mediaIndex.len > 0: var index = parseInt(mediaIndex)