diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-09 11:22:29 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-08-09 11:22:29 +0200 |
commit | e13db048c7d85d0c74d3225f8508712da3b6ccf0 (patch) | |
tree | 7333a165edf8973ddc22c27ee5b3453c2be2502e /server/controllers/api/videos | |
parent | 8d33235de737e18eabb0816a950ba89f4a807e70 (diff) | |
download | PeerTube-e13db048c7d85d0c74d3225f8508712da3b6ccf0.tar.gz PeerTube-e13db048c7d85d0c74d3225f8508712da3b6ccf0.tar.zst PeerTube-e13db048c7d85d0c74d3225f8508712da3b6ccf0.zip |
Fix upload notification
Diffstat (limited to 'server/controllers/api/videos')
-rw-r--r-- | server/controllers/api/videos/upload.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/server/controllers/api/videos/upload.ts b/server/controllers/api/videos/upload.ts index cc171eece..43313a143 100644 --- a/server/controllers/api/videos/upload.ts +++ b/server/controllers/api/videos/upload.ts | |||
@@ -259,6 +259,15 @@ async function addVideoJobsAfterUpload (video: MVideoFullLight, videoFile: MVide | |||
259 | action: 'create' | 259 | action: 'create' |
260 | } | 260 | } |
261 | }, | 261 | }, |
262 | |||
263 | { | ||
264 | type: 'notify', | ||
265 | payload: { | ||
266 | action: 'new-video', | ||
267 | videoUUID: video.uuid | ||
268 | } | ||
269 | }, | ||
270 | |||
262 | { | 271 | { |
263 | type: 'federate-video' as 'federate-video', | 272 | type: 'federate-video' as 'federate-video', |
264 | payload: { | 273 | payload: { |