dont redirect twice on direct video

This commit is contained in:
Cynthia Foxwell 2026-01-12 12:46:24 -07:00
parent 7b15b8f0a2
commit da09fbcaf5
No known key found for this signature in database

View File

@ -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)