Fix card video preview
This commit is contained in:
parent
af634231b9
commit
1d0f95b79d
|
@ -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,
|
||||
|
|
|
@ -58,7 +58,6 @@ type
|
|||
|
||||
Video* = object
|
||||
videoId*: string
|
||||
contentId*: string
|
||||
durationMs*: int
|
||||
url*: string
|
||||
thumb*: string
|
||||
|
|
Loading…
Reference in New Issue