Fix card video preview

This commit is contained in:
Zed 2020-11-09 21:24:34 +01:00
parent af634231b9
commit 1d0f95b79d
2 changed files with 1 additions and 2 deletions

View File

@ -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,

View File

@ -58,7 +58,6 @@ type
Video* = object
videoId*: string
contentId*: string
durationMs*: int
url*: string
thumb*: string