From 752c569f9bfe1b5cc55f7b1bee5cd924e364b53c Mon Sep 17 00:00:00 2001 From: nikolay torbev Date: Wed, 11 Dec 2024 16:53:31 +0200 Subject: [PATCH] YouTube id correction --- src/app/pages/projects/project-detail.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/pages/projects/project-detail.component.ts b/src/app/pages/projects/project-detail.component.ts index 810d89d3..0561509a 100644 --- a/src/app/pages/projects/project-detail.component.ts +++ b/src/app/pages/projects/project-detail.component.ts @@ -182,7 +182,9 @@ export class ProjectDetailComponent implements AfterViewInit { }); } } - this.youTube = this.sanitizeUrls(this.project.videos, 'YOUTUBE')[0]?.changingThisBreaksApplicationSecurity; + const youtubeUrl = `https://www.youtube.com/watch?v=${this.project.youtube_video_id}`; + this.youTube = this.sanitizeUrls([youtubeUrl], 'YOUTUBE')[0]?.changingThisBreaksApplicati + // this.youTube = this.sanitizeUrls(this.project.youtube_video_id, 'YOUTUBE')[0]?.changingThisBreaksApplicationSecurity; this.tweet = this.project.tweets[0]; this.project.videos = this.sanitizeUrls(this.project.videos, 'YOUTUBE');