Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

video embed: use instance name as html title

kontrollanten915e2bbb97a8
diff --git a/client/src/standalone/videos/embed.html b/client/src/standalone/videos/embed.html
index a44bf56a39..7d09bfb8f7 100644
--- a/client/src/standalone/videos/embed.html
+++ b/client/src/standalone/videos/embed.html
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <title>PeerTube</title>
+ <!-- title tag -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
diff --git a/server/lib/client-html.ts b/server/lib/client-html.ts
index 6a457a711c..f19ec7df02 100644
--- a/server/lib/client-html.ts
+++ b/server/lib/client-html.ts
@@ -211,6 +211,7 @@ class ClientHtml {
let html = buffer.toString()
html = await ClientHtml.addAsyncPluginCSS(html)
html = ClientHtml.addCustomCSS(html)
+ html = ClientHtml.addTitleTag(html)
ClientHtml.htmlCache[path] = html