From 866b5d3f5230204d611a556260102996c1aefe10 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 10 Mar 2023 12:01:21 +0100 Subject: Add ability for plugins to alter video jsonld --- shared/models/plugins/server/server-hook.model.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'shared/models') 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 = { 'filter:transcoding.manual.resolutions-to-transcode.result': true, 'filter:transcoding.auto.resolutions-to-transcode.result': true, - 'filter:activity-pub.remote-video-comment.create.accept.result': true + 'filter:activity-pub.remote-video-comment.create.accept.result': true, + + 'filter:activity-pub.activity.context.build.result': true, + + // Filter the result of video JSON LD builder + // You may also need to use filter:activity-pub.activity.context.build.result to also update JSON LD context + 'filter:activity-pub.video.jsonld.build.result': true } export type ServerFilterHookName = keyof typeof serverFilterHookObject -- cgit v1.2.3