From da09fbcaf5380e7e27bdd283d2935bf287ef6c88 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Mon, 12 Jan 2026 12:46:24 -0700 Subject: [PATCH] dont redirect twice on direct video --- 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 0ba5add..3516a19 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.replace("https://video.twimg.com", getUrlPrefix(cfg) & "/tvid").replace(".mp4", "")) + redirect(video) elif rawImage and images.len > 0: if media == "photo" and mediaIndex.len > 0: var index = parseInt(mediaIndex)