ActivityPub-federated video streaming platform using P2P directly in your web browser
Redirect to uuid video route after upload
Chocobozzza4b8a4ddccc9
diff --git a/client/src/app/videos/+video-edit/video-add.component.ts b/client/src/app/videos/+video-edit/video-add.component.tsindex 503f705db9..90510d0dc8 100644--- a/client/src/app/videos/+video-edit/video-add.component.ts+++ b/client/src/app/videos/+video-edit/video-add.component.ts@@ -25,7 +25,10 @@ export class VideoAddComponent extends FormReactive implements OnInit {isUploadingVideo = falsevideoUploaded = falsevideoUploadPercents = 0- videoUploadedId = 0+ videoUploadedIds = {+ id: 0,+ uuid: ''+ }error: string = nullform: FormGroup@@ -122,7 +125,7 @@ export class VideoAddComponent extends FormReactive implements OnInit {this.videoUploaded = true- this.videoUploadedId = event.body.video.id+ this.videoUploadedIds = event.body.video}},@@ -142,13 +145,14 @@ export class VideoAddComponent extends FormReactive implements OnInit {const video = new VideoEdit()video.patch(this.form.value)video.channel = this.firstStepChannelId- video.id = this.videoUploadedId+ video.id = this.videoUploadedIds.id+ video.uuid = this.videoUploadedIds.uuidthis.videoService.updateVideo(video).subscribe(() => {this.notificationsService.success('Success', 'Video published.')- this.router.navigate([ '/videos/watch', video.id ])+ this.router.navigate([ '/videos/watch', video.uuid ])},err => {