Skip to content

Commit

Permalink
make alternative url optional when publishing (#1904)
Browse files Browse the repository at this point in the history
  • Loading branch information
Masterjun3 authored Jun 30, 2024
1 parent 5b2cee9 commit a42aa49
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 a42aa49

Please sign in to comment.