mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Use my-embed component
This commit is contained in:
parent
58f156e748
commit
4a67994775
8 changed files with 94 additions and 131 deletions
|
@ -84,6 +84,8 @@ function decorateVideoLink (options: {
|
|||
|
||||
peertubeLink?: boolean
|
||||
p2p?: boolean
|
||||
|
||||
api?: boolean
|
||||
}) {
|
||||
const { url } = options
|
||||
|
||||
|
@ -113,6 +115,8 @@ function decorateVideoLink (options: {
|
|||
if (options.peertubeLink === false) params.set('peertubeLink', '0')
|
||||
if (options.p2p !== undefined) params.set('p2p', options.p2p ? '1' : '0')
|
||||
|
||||
if (options.api !== undefined) params.set('api', options.api ? '1' : '0')
|
||||
|
||||
return buildUrl(url, params)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue