diff options
author | Chocobozzz <me@florianbigard.com> | 2017-12-18 11:53:04 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-19 10:53:16 +0100 |
commit | ce33ee01cd3806201b676c318e9aa930032921b2 (patch) | |
tree | a067f57a571f417fc7b70f39af4302cd17183b07 /server/controllers | |
parent | 555846c99fa43b237814d32bd55d8124405187d3 (diff) | |
download | PeerTube-ce33ee01cd3806201b676c318e9aa930032921b2.tar.gz PeerTube-ce33ee01cd3806201b676c318e9aa930032921b2.tar.zst PeerTube-ce33ee01cd3806201b676c318e9aa930032921b2.zip |
Use RsaSignature2017
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/api/videos/index.ts | 2 |
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 | }) |