diff options
author | Chocobozzz <me@florianbigard.com> | 2023-03-10 12:01:21 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-03-10 15:45:52 +0100 |
commit | 3b504f6ed4e890bebb46d0481aba15b43050323a (patch) | |
tree | bbe4c1bc529fec28e0b46263ec92f7c2260ba65a /shared/models/plugins/server | |
parent | 4899138ec5995075c3681ccbd9f6b163fb915991 (diff) | |
download | PeerTube-3b504f6ed4e890bebb46d0481aba15b43050323a.tar.gz PeerTube-3b504f6ed4e890bebb46d0481aba15b43050323a.tar.zst PeerTube-3b504f6ed4e890bebb46d0481aba15b43050323a.zip |
Add ability for plugins to alter video jsonld
Diffstat (limited to 'shared/models/plugins/server')
-rw-r--r-- | shared/models/plugins/server/server-hook.model.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/shared/models/plugins/server/server-hook.model.ts b/shared/models/plugins/server/server-hook.model.ts index bbd08365c..7881beaa2 100644 --- a/shared/models/plugins/server/server-hook.model.ts +++ b/shared/models/plugins/server/server-hook.model.ts | |||
@@ -113,7 +113,13 @@ export const serverFilterHookObject = { | |||
113 | 'filter:transcoding.manual.resolutions-to-transcode.result': true, | 113 | 'filter:transcoding.manual.resolutions-to-transcode.result': true, |
114 | 'filter:transcoding.auto.resolutions-to-transcode.result': true, | 114 | 'filter:transcoding.auto.resolutions-to-transcode.result': true, |
115 | 115 | ||
116 | 'filter:activity-pub.remote-video-comment.create.accept.result': true | 116 | 'filter:activity-pub.remote-video-comment.create.accept.result': true, |
117 | |||
118 | 'filter:activity-pub.activity.context.build.result': true, | ||
119 | |||
120 | // Filter the result of video JSON LD builder | ||
121 | // You may also need to use filter:activity-pub.activity.context.build.result to also update JSON LD context | ||
122 | 'filter:activity-pub.video.jsonld.build.result': true | ||
117 | } | 123 | } |
118 | 124 | ||
119 | export type ServerFilterHookName = keyof typeof serverFilterHookObject | 125 | export type ServerFilterHookName = keyof typeof serverFilterHookObject |