Skip to content

Commit

Permalink
publish - actualy fix alternate encode being required
Browse files Browse the repository at this point in the history
  • Loading branch information
adelikat committed Jul 1, 2024
1 parent a42aa49 commit 6d244aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TASVideos/Pages/Submissions/Publish.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public async Task<IActionResult> OnPost()
var video = new YoutubeVideo(
publication.Id,
publication.CreateTimestamp,
Submission.AlternateOnlineWatchingUrl!,
Submission.AlternateOnlineWatchingUrl ?? "",
Submission.AlternateOnlineWatchUrlName,
publication.Title,
addedWikiPage!,
Expand Down Expand Up @@ -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; }
Expand Down

0 comments on commit 6d244aa

Please sign in to comment.