From 1d0f95b79d5edae28ae705f6f76ab08922274d71 Mon Sep 17 00:00:00 2001 From: Zed Date: Mon, 9 Nov 2020 21:24:34 +0100 Subject: [PATCH] Fix card video preview --- src/routes/status.nim | 2 +- src/types.nim | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/routes/status.nim b/src/routes/status.nim index 613573f..3125bb3 100644 --- a/src/routes/status.nim +++ b/src/routes/status.nim @@ -51,7 +51,7 @@ proc createStatusRouter*(cfg: Config) = if card.image.len > 0: images = @[card.image] elif card.video.isSome(): - video = getVideoEmbed(cfg, parseInt(card.video.get().videoId)) + images = @[card.video.get().thumb] let html = renderConversation(conv, prefs, getPath() & "#m") resp renderMain(html, request, cfg, prefs, title, desc, ogTitle, diff --git a/src/types.nim b/src/types.nim index cafb228..dbfe1f6 100644 --- a/src/types.nim +++ b/src/types.nim @@ -58,7 +58,6 @@ type Video* = object videoId*: string - contentId*: string durationMs*: int url*: string thumb*: string