Link mp4 instead of embed for gif tweet previews

This commit is contained in:
Zed 2019-10-23 09:16:27 +02:00
parent 779187529c
commit 73afb1d6a4

View file

@ -36,7 +36,7 @@ proc createStatusRouter*(cfg: Config) =
`type`="video", video=vidUrl)
elif conversation.tweet.gif.isSome():
let thumb = get(conversation.tweet.gif).thumb
let vidUrl = getVideoEmbed(conversation.tweet.id)
let vidUrl = getGifUrl(get(conversation.tweet.gif).url)
resp renderMain(html, request, cfg, title, desc, images = @[thumb],
`type`="video", video=vidUrl)
else: