1
0
Fork 0
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:
Chocobozzz 2021-03-23 17:18:18 +01:00
parent 4bc45da342
commit eebd9838f0
No known key found for this signature in database
GPG key ID: 583A612D890159BE
6 changed files with 107 additions and 5 deletions

View file

@ -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