瀏覽代碼

Link mp4 instead of embed for gif tweet previews

Zed 6 年之前
父節點
當前提交
73afb1d6a4
共有 1 個文件被更改,包括 1 次插入1 次删除
  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: