ActivityPub-federated video streaming platform using P2P directly in your web browser
Styling
Chocobozzz532020e2afa3
diff --git a/client/src/root-helpers/video.ts b/client/src/root-helpers/video.tsindex 76d88ad162..de4c33c806 100644--- a/client/src/root-helpers/video.ts+++ b/client/src/root-helpers/video.ts@@ -14,7 +14,7 @@ export function buildVideoOrPlaylistEmbed (options: {iframe.width = responsive ? '100%' : '560'iframe.height = responsive ? '100%' : '315'iframe.src = embedUrl- iframe.style.border = 'none'+ iframe.style.border = '0'iframe.allow = 'fullscreen'iframe.sandbox.add('allow-same-origin', 'allow-scripts', 'allow-popups', 'allow-forms')diff --git a/packages/tests/src/api/server/services.ts b/packages/tests/src/api/server/services.tsindex 0e47cc9e93..bf8d3e2eef 100644--- a/packages/tests/src/api/server/services.ts+++ b/packages/tests/src/api/server/services.ts@@ -80,7 +80,7 @@ describe('Test services', function () {const res = await server.services.getOEmbed({ oembedUrl })const expectedHtml = '<iframe width="560" height="315" sandbox="allow-same-origin allow-scripts allow-popups allow-forms" ' +`title="${video.name}" src="http://${server.host}/videos/embed/${video.shortUUID}${suffix.output}" ` +- 'style="border:none" allow="fullscreen"></iframe>'+ 'style="border: none" allow="fullscreen"></iframe>'const expectedThumbnailUrl = 'http://' + server.host + video.previewPath@@ -104,7 +104,7 @@ describe('Test services', function () {const res = await server.services.getOEmbed({ oembedUrl })const expectedHtml = '<iframe width="560" height="315" sandbox="allow-same-origin allow-scripts allow-popups allow-forms" ' +`title="${playlistDisplayName}" src="http://${server.host}/video-playlists/embed/${playlistShortUUID}${suffix.output}" ` +- 'style="border:none" allow="fullscreen"></iframe>'+ 'style="border: none" allow="fullscreen"></iframe>'expect(res.body.html).to.equal(expectedHtml)expect(res.body.title).to.equal('The Life and Times of Scrooge McDuck')@@ -125,7 +125,7 @@ describe('Test services', function () {const expectedHtml = '<iframe width="560" height="315" sandbox="allow-same-origin allow-scripts allow-popups allow-forms" ' +`title="${video.name}" src="http://${server.host}/videos/embed/${video.shortUUID}${query}" ` +- 'style="border:none" allow="fullscreen"></iframe>'+ 'style="border: none" allow="fullscreen"></iframe>'expect(res.body.html).to.equal(expectedHtml)})@@ -140,7 +140,7 @@ describe('Test services', function () {const res = await server.services.getOEmbed({ oembedUrl, format, maxHeight, maxWidth })const expectedHtml = '<iframe width="50" height="50" sandbox="allow-same-origin allow-scripts allow-popups allow-forms" ' +`title="${video.name}" src="http://${server.host}/videos/embed/${video.shortUUID}" ` +- 'style="border:none" allow="fullscreen"></iframe>'+ 'style="border: none" allow="fullscreen"></iframe>'expect(res.body.html).to.equal(expectedHtml)expect(res.body.title).to.equal(video.name)diff --git a/server/core/controllers/services.ts b/server/core/controllers/services.tsindex a1b4c7ffbc..39593d0834 100644--- a/server/core/controllers/services.ts+++ b/server/core/controllers/services.ts@@ -137,7 +137,7 @@ function buildOEmbed (options: {}const html = `<iframe width="${embedWidth}" height="${embedHeight}" sandbox="allow-same-origin allow-scripts allow-popups allow-forms" ` +- `title="${embedTitle}" src="${embedUrl}" style="border:none" allow="fullscreen"></iframe>`+ `title="${embedTitle}" src="${embedUrl}" style="border: none" allow="fullscreen"></iframe>`const json: any = {type: 'video',