aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/core-utils/common/url.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/shared/core-utils/common/url.ts b/shared/core-utils/common/url.ts
index 9c111cbcc..8020d9b28 100644
--- a/shared/core-utils/common/url.ts
+++ b/shared/core-utils/common/url.ts
@@ -50,6 +50,7 @@ function decorateVideoLink (options: {
50 warningTitle?: boolean 50 warningTitle?: boolean
51 controls?: boolean 51 controls?: boolean
52 peertubeLink?: boolean 52 peertubeLink?: boolean
53 p2p?: boolean
53}) { 54}) {
54 const { url } = options 55 const { url } = options
55 56
@@ -74,6 +75,7 @@ function decorateVideoLink (options: {
74 if (options.warningTitle === false) params.set('warningTitle', '0') 75 if (options.warningTitle === false) params.set('warningTitle', '0')
75 if (options.controls === false) params.set('controls', '0') 76 if (options.controls === false) params.set('controls', '0')
76 if (options.peertubeLink === false) params.set('peertubeLink', '0') 77 if (options.peertubeLink === false) params.set('peertubeLink', '0')
78 if (options.p2p !== undefined) params.set('p2p', options.p2p ? '1' : '0')
77 79
78 return buildUrl(url, params) 80 return buildUrl(url, params)
79} 81}