mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
emit body and doctype on iframe embed endpoint (#640)
This commit is contained in:
parent
b398136742
commit
5e827c91aa
3 changed files with 15 additions and 6 deletions
|
|
@ -15,7 +15,8 @@ proc renderVideoEmbed*(tweet: Tweet; cfg: Config; req: Request): string =
|
|||
let node = buildHtml(html(lang="en")):
|
||||
renderHead(prefs, cfg, req, video=vidUrl, images=(@[thumb]))
|
||||
|
||||
tdiv(class="embed-video"):
|
||||
renderVideo(get(tweet.video), prefs, "")
|
||||
body:
|
||||
tdiv(class="embed-video"):
|
||||
renderVideo(get(tweet.video), prefs, "")
|
||||
|
||||
result = doctype & $node
|
||||
|
|
|
|||
Loading…
Reference in a new issue