Browse Source

Link mp4 instead of embed for gif tweet previews

Zed 6 years ago
parent
commit
73afb1d6a4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/routes/status.nim

+ 1 - 1
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: