Skip to content

Commit

Permalink
Revert "Add licence metadata to pubs and subs to match site policy"
Browse files Browse the repository at this point in the history
This reverts commit a3b9899.
  • Loading branch information
YoshiRulz committed Oct 15, 2024
1 parent a3b9899 commit cc905be
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion TASVideos/Pages/MetaTag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

public class MetaTag
{
public string? License { get; init; }
public string? Title { get; init; }
public string? Description { get; init; }
public string? RelativeUrl { get; init; }
Expand Down
1 change: 0 additions & 1 deletion TASVideos/Pages/Publications/View.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
ViewData.SetTitle($"{Model.Publication.Title} - Movie #{Model.Id}");
ViewData.SetMetaTags(new MetaTag
{
License = "https://creativecommons.org/licenses/by/2.0/", // TODO also set this for wiki pages incl. game resources, as the editor page for those claims they're also CC BY 2.0
Title = Model.Publication.Title,
Description = $"Publication [{Model.Id}] from {Model.Publication.CreateTimestamp.ToString("yyyy-MM-dd", System.Globalization.CultureInfo.InvariantCulture)}",
Image = $"{HttpContext.Request.ToBaseUrl()}/media/{Model.Publication.Screenshot.Path}",
Expand Down
1 change: 0 additions & 1 deletion TASVideos/Pages/Shared/_MetaTags.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
: Context.Request.ToUrl();
var image = model.Image ?? $"{Context.Request.ToBaseUrl()}/images/logo-embed.png";
}
<link condition="model.License is not null" href="@(model.License)" rel="license" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="TASVideos"/>
<meta property="og:title" content="@title" />
Expand Down
1 change: 0 additions & 1 deletion TASVideos/Pages/Submissions/View.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@

ViewData.SetMetaTags(new MetaTag
{
License = "https://creativecommons.org/licenses/by/2.0/",
Title = Model.Submission.Title,
Description = $"Submission #{Model.Id} from {Model.Submission.Date.ToString("yyyy-MM-dd", System.Globalization.CultureInfo.InvariantCulture)}",
Image = youtubeEmbedImage,
Expand Down

0 comments on commit cc905be

Please sign in to comment.