aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/api')
-rw-r--r--server/controllers/api/videos/index.ts2
1 files changed, 0 insertions, 2 deletions
diff --git a/server/controllers/api/videos/index.ts b/server/controllers/api/videos/index.ts
index 3e65e844b..8283f2e4e 100644
--- a/server/controllers/api/videos/index.ts
+++ b/server/controllers/api/videos/index.ts
@@ -252,7 +252,6 @@ async function addVideo (req: express.Request, res: express.Response, videoPhysi
252 if (video.privacy === VideoPrivacy.PRIVATE) return videoCreated 252 if (video.privacy === VideoPrivacy.PRIVATE) return videoCreated
253 253
254 await sendCreateVideo(video, t) 254 await sendCreateVideo(video, t)
255 // TODO: share by video channel
256 await shareVideoByServerAndChannel(video, t) 255 await shareVideoByServerAndChannel(video, t)
257 256
258 logger.info('Video with name %s and uuid %s created.', videoInfo.name, videoCreated.uuid) 257 logger.info('Video with name %s and uuid %s created.', videoInfo.name, videoCreated.uuid)
@@ -309,7 +308,6 @@ async function updateVideo (req: express.Request, res: express.Response) {
309 // Video is not private anymore, send a create action to remote servers 308 // Video is not private anymore, send a create action to remote servers
310 if (wasPrivateVideo === true && videoInstanceUpdated.privacy !== VideoPrivacy.PRIVATE) { 309 if (wasPrivateVideo === true && videoInstanceUpdated.privacy !== VideoPrivacy.PRIVATE) {
311 await sendCreateVideo(videoInstanceUpdated, t) 310 await sendCreateVideo(videoInstanceUpdated, t)
312 // TODO: Send by video channel
313 await shareVideoByServerAndChannel(videoInstanceUpdated, t) 311 await shareVideoByServerAndChannel(videoInstanceUpdated, t)
314 } 312 }
315 }) 313 })