From 73afb1d6a4e8806b481e26e853bf11d483c8aeb6 Mon Sep 17 00:00:00 2001 From: Zed Date: Wed, 23 Oct 2019 09:16:27 +0200 Subject: [PATCH] Link mp4 instead of embed for gif tweet previews --- 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 305df38..3e9ab2e 100644 --- a/src/routes/status.nim +++ b/src/routes/status.nim @@ -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: