From a892c54a821ae030143b07ba99ee1e159b24d35b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 27 Jul 2021 17:37:59 +0200 Subject: [PATCH] Fix oembed for playlists --- server/lib/client-html.ts | 2 +- server/tests/client.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/server/lib/client-html.ts b/server/lib/client-html.ts index ae335240e..a557c090f 100644 --- a/server/lib/client-html.ts +++ b/server/lib/client-html.ts @@ -162,7 +162,7 @@ class ClientHtml { let customHtml = ClientHtml.addTitleTag(html, escapeHTML(videoPlaylist.name)) customHtml = ClientHtml.addDescriptionTag(customHtml, mdToPlainText(videoPlaylist.description)) - const url = videoPlaylist.getWatchStaticPath() + const url = WEBSERVER.URL + videoPlaylist.getWatchStaticPath() const originUrl = videoPlaylist.url const title = escapeHTML(videoPlaylist.name) const siteName = escapeHTML(CONFIG.INSTANCE.NAME) diff --git a/server/tests/client.ts b/server/tests/client.ts index 9c27a7aae..4cbdb2cb3 100644 --- a/server/tests/client.ts +++ b/server/tests/client.ts @@ -119,7 +119,7 @@ describe('Test a client controllers', function () { const port = servers[0].port const expectedLink = '` expect(res.text).to.contain(expectedLink) @@ -140,7 +140,7 @@ describe('Test a client controllers', function () { const port = servers[0].port const expectedLink = '` expect(res.text).to.contain(expectedLink) @@ -178,7 +178,7 @@ describe('Test a client controllers', function () { expect(text).to.contain(``) expect(text).to.contain(``) expect(text).to.contain('') - expect(text).to.contain(``) + expect(text).to.contain(``) } async function watchPlaylistPageTest (path: string) { @@ -188,7 +188,7 @@ describe('Test a client controllers', function () { expect(text).to.contain(``) expect(text).to.contain(``) expect(text).to.contain('') - expect(text).to.contain(``) + expect(text).to.contain(``) } it('Should have valid Open Graph tags on the account page', async function () { -- 2.41.0