aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-03-10 12:01:21 +0100
committerChocobozzz <me@florianbigard.com>2023-03-14 14:19:42 +0100
commit230af3e7db5581e1bb85201b0fae236837ae7d59 (patch)
tree86a00f0a0ff90f21c207507d99e23be2dcc1886e /client
parentf386bab02eff654694c85ccb826d80df91c4e471 (diff)
downloadPeerTube-230af3e7db5581e1bb85201b0fae236837ae7d59.tar.gz
PeerTube-230af3e7db5581e1bb85201b0fae236837ae7d59.tar.zst
PeerTube-230af3e7db5581e1bb85201b0fae236837ae7d59.zip
Add ability for plugins to alter video jsonld
Diffstat (limited to 'client')
-rw-r--r--client/src/app/core/plugins/hooks.service.ts9
1 files changed, 0 insertions, 9 deletions
diff --git a/client/src/app/core/plugins/hooks.service.ts b/client/src/app/core/plugins/hooks.service.ts
index 978316ec2..d9fef8389 100644
--- a/client/src/app/core/plugins/hooks.service.ts
+++ b/client/src/app/core/plugins/hooks.service.ts
@@ -48,15 +48,6 @@ export class HooksService {
48 return this.pluginService.runHook(hookResultName, result, params) 48 return this.pluginService.runHook(hookResultName, result, params)
49 } 49 }
50 50
51 async wrapFunResult <P, R, H extends ClientFilterHookName>
52 (fun: RawFunction<P, R>, params: P, scope: PluginClientScope, hookResultName: H) {
53 await this.pluginService.ensurePluginsAreLoaded(scope)
54
55 const result = fun(params)
56
57 return this.pluginService.runHook(hookResultName, result, params)
58 }
59
60 runAction<T, U extends ClientActionHookName> (hookName: U, scope: PluginClientScope, params?: T) { 51 runAction<T, U extends ClientActionHookName> (hookName: U, scope: PluginClientScope, params?: T) {
61 // Use setTimeout to give priority to Angular change detector 52 // Use setTimeout to give priority to Angular change detector
62 setTimeout(() => { 53 setTimeout(() => {