diff options
author | Chocobozzz <me@florianbigard.com> | 2023-07-19 16:02:49 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-07-21 17:38:13 +0200 |
commit | 12dc3a942a13c7f1489822dae052da197ef15905 (patch) | |
tree | 7b87b6be692af0b62ebac17e720c80244fd8a7ec /shared/models/plugins/server | |
parent | c6867725fb8e3dfbc2018a37ed5a963103587cb6 (diff) | |
download | PeerTube-12dc3a942a13c7f1489822dae052da197ef15905.tar.gz PeerTube-12dc3a942a13c7f1489822dae052da197ef15905.tar.zst PeerTube-12dc3a942a13c7f1489822dae052da197ef15905.zip |
Implement replace file in server side
Diffstat (limited to 'shared/models/plugins/server')
-rw-r--r-- | shared/models/plugins/server/server-hook.model.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/shared/models/plugins/server/server-hook.model.ts b/shared/models/plugins/server/server-hook.model.ts index 0ec62222d..cf387ffd7 100644 --- a/shared/models/plugins/server/server-hook.model.ts +++ b/shared/models/plugins/server/server-hook.model.ts | |||
@@ -64,6 +64,7 @@ export const serverFilterHookObject = { | |||
64 | 'filter:api.video.pre-import-torrent.accept.result': true, | 64 | 'filter:api.video.pre-import-torrent.accept.result': true, |
65 | 'filter:api.video.post-import-url.accept.result': true, | 65 | 'filter:api.video.post-import-url.accept.result': true, |
66 | 'filter:api.video.post-import-torrent.accept.result': true, | 66 | 'filter:api.video.post-import-torrent.accept.result': true, |
67 | 'filter:api.video.update-file.accept.result': true, | ||
67 | // Filter the result of the accept comment (thread or reply) functions | 68 | // Filter the result of the accept comment (thread or reply) functions |
68 | // If the functions return false then the user cannot post its comment | 69 | // If the functions return false then the user cannot post its comment |
69 | 'filter:api.video-thread.create.accept.result': true, | 70 | 'filter:api.video-thread.create.accept.result': true, |
@@ -155,6 +156,9 @@ export const serverActionHookObject = { | |||
155 | // Fired when a local video is viewed | 156 | // Fired when a local video is viewed |
156 | 'action:api.video.viewed': true, | 157 | 'action:api.video.viewed': true, |
157 | 158 | ||
159 | // Fired when a local video file has been replaced by a new one | ||
160 | 'action:api.video.file-updated': true, | ||
161 | |||
158 | // Fired when a video channel is created | 162 | // Fired when a video channel is created |
159 | 'action:api.video-channel.created': true, | 163 | 'action:api.video-channel.created': true, |
160 | // Fired when a video channel is updated | 164 | // Fired when a video channel is updated |