From 6d244aae9108febaf61689a1a0b68f0a3e306345 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 30 Jun 2024 20:20:36 -0500 Subject: [PATCH] publish - actualy fix alternate encode being required --- TASVideos/Pages/Submissions/Publish.cshtml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TASVideos/Pages/Submissions/Publish.cshtml.cs b/TASVideos/Pages/Submissions/Publish.cshtml.cs index ccbd3b459..0a3ecd593 100644 --- a/TASVideos/Pages/Submissions/Publish.cshtml.cs +++ b/TASVideos/Pages/Submissions/Publish.cshtml.cs @@ -175,7 +175,7 @@ public async Task OnPost() var video = new YoutubeVideo( publication.Id, publication.CreateTimestamp, - Submission.AlternateOnlineWatchingUrl!, + Submission.AlternateOnlineWatchingUrl ?? "", Submission.AlternateOnlineWatchUrlName, publication.Title, addedWikiPage!, @@ -243,7 +243,7 @@ public class SubmissionPublishModel [Url] [StringLength(500)] - public string? AlternateOnlineWatchingUrl { get; init; } = ""; + public string? AlternateOnlineWatchingUrl { get; init; } [StringLength(100)] public string? AlternateOnlineWatchUrlName { get; init; }