dont redirect twice on direct video
This commit is contained in:
parent
7b15b8f0a2
commit
da09fbcaf5
@ -228,7 +228,7 @@ proc createStatusRouter*(cfg: Config) =
|
|||||||
# images = @[card.video.get().thumb]
|
# images = @[card.video.get().thumb]
|
||||||
|
|
||||||
if rawVideo and video != "":
|
if rawVideo and video != "":
|
||||||
redirect(video.replace("https://video.twimg.com", getUrlPrefix(cfg) & "/tvid").replace(".mp4", ""))
|
redirect(video)
|
||||||
elif rawImage and images.len > 0:
|
elif rawImage and images.len > 0:
|
||||||
if media == "photo" and mediaIndex.len > 0:
|
if media == "photo" and mediaIndex.len > 0:
|
||||||
var index = parseInt(mediaIndex)
|
var index = parseInt(mediaIndex)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user