mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Add filter hook to forbid embed access
This commit is contained in:
parent
4bc45da342
commit
eebd9838f0
6 changed files with 107 additions and 5 deletions
|
@ -54,7 +54,11 @@ export const serverFilterHookObject = {
|
|||
|
||||
// Filter result used to check if video/torrent download is allowed
|
||||
'filter:api.download.video.allowed.result': true,
|
||||
'filter:api.download.torrent.allowed.result': true
|
||||
'filter:api.download.torrent.allowed.result': true,
|
||||
|
||||
// Filter result to check if the embed is allowed for a particular request
|
||||
'filter:html.embed.video.allowed.result': true,
|
||||
'filter:html.embed.video-playlist.allowed.result': true
|
||||
}
|
||||
|
||||
export type ServerFilterHookName = keyof typeof serverFilterHookObject
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue