mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Router refactoring
This commit is contained in:
parent
f3aa28709a
commit
d93a6691ef
6 changed files with 45 additions and 49 deletions
|
|
@ -11,7 +11,7 @@ proc renderVideoEmbed*(cfg: Config; tweet: Tweet): string =
|
|||
let vidUrl = getVideoEmbed(cfg, tweet.id)
|
||||
let prefs = Prefs(hlsPlayback: true)
|
||||
let node = buildHtml(html(lang="en")):
|
||||
renderHead(prefs, cfg, `type`="video", images = @[thumb], video=vidUrl)
|
||||
renderHead(prefs, cfg, video=vidUrl, images=(@[thumb]))
|
||||
|
||||
tdiv(class="embed-video"):
|
||||
renderVideo(get(tweet.video), prefs, "")
|
||||
|
|
|
|||
Loading…
Reference in a new issue