aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/videos/index.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-11-17 15:42:12 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-11-27 19:40:52 +0100
commit572f8d3dba44ba874f5c51023214273e3f5b643c (patch)
treed8f71046205d5e4618f5a1c5ed002dd1b8bc6661 /server/controllers/api/videos/index.ts
parent9a27cdc27c900feaae5f6db4315c4ccdfc0c4493 (diff)
downloadPeerTube-572f8d3dba44ba874f5c51023214273e3f5b643c.tar.gz
PeerTube-572f8d3dba44ba874f5c51023214273e3f5b643c.tar.zst
PeerTube-572f8d3dba44ba874f5c51023214273e3f5b643c.zip
Fix public video we set to public or unlisted
Diffstat (limited to 'server/controllers/api/videos/index.ts')
-rw-r--r--server/controllers/api/videos/index.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/controllers/api/videos/index.ts b/server/controllers/api/videos/index.ts
index a5414cc50..22a88620a 100644
--- a/server/controllers/api/videos/index.ts
+++ b/server/controllers/api/videos/index.ts
@@ -291,6 +291,7 @@ async function updateVideo (req: express.Request, res: express.Response) {
291 // Video is not private anymore, send a create action to remote servers 291 // Video is not private anymore, send a create action to remote servers
292 if (wasPrivateVideo === true && videoInstance.privacy !== VideoPrivacy.PRIVATE) { 292 if (wasPrivateVideo === true && videoInstance.privacy !== VideoPrivacy.PRIVATE) {
293 await sendAddVideo(videoInstance, t) 293 await sendAddVideo(videoInstance, t)
294 await shareVideoByServer(videoInstance, t)
294 } 295 }
295 }) 296 })
296 297