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:
|
if card.image.len > 0:
|
||||||
images = @[card.image]
|
images = @[card.image]
|
||||||
elif card.video.isSome():
|
elif card.video.isSome():
|
||||||
video = getVideoEmbed(cfg, parseInt(card.video.get().videoId))
|
images = @[card.video.get().thumb]
|
||||||
|
|
||||||
let html = renderConversation(conv, prefs, getPath() & "#m")
|
let html = renderConversation(conv, prefs, getPath() & "#m")
|
||||||
resp renderMain(html, request, cfg, prefs, title, desc, ogTitle,
|
resp renderMain(html, request, cfg, prefs, title, desc, ogTitle,
|
||||||
|
|
|
@ -58,7 +58,6 @@ type
|
||||||
|
|
||||||
Video* = object
|
Video* = object
|
||||||
videoId*: string
|
videoId*: string
|
||||||
contentId*: string
|
|
||||||
durationMs*: int
|
durationMs*: int
|
||||||
url*: string
|
url*: string
|
||||||
thumb*: string
|
thumb*: string
|
||||||
|
|
Loading…
Reference in New Issue