Link mp4 instead of embed for gif tweet previews
This commit is contained in:
parent
779187529c
commit
73afb1d6a4
|
@ -36,7 +36,7 @@ proc createStatusRouter*(cfg: Config) =
|
||||||
`type`="video", video=vidUrl)
|
`type`="video", video=vidUrl)
|
||||||
elif conversation.tweet.gif.isSome():
|
elif conversation.tweet.gif.isSome():
|
||||||
let thumb = get(conversation.tweet.gif).thumb
|
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],
|
resp renderMain(html, request, cfg, title, desc, images = @[thumb],
|
||||||
`type`="video", video=vidUrl)
|
`type`="video", video=vidUrl)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue