emit body and doctype on iframe embed endpoint (#640)

This commit is contained in:
HookedBehemoth
2022-06-16 18:46:41 +02:00
committed by GitHub
parent b398136742
commit 5e827c91aa
3 changed files with 15 additions and 6 deletions

View File

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