Skip to content

Commit

Permalink
YouTube id correction
Browse files Browse the repository at this point in the history
  • Loading branch information
ntorbev committed Dec 11, 2024
1 parent 8e49561 commit 752c569
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/pages/projects/project-detail.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit 752c569

Please sign in to comment.