Migration to new soundtrack title struct
This commit is contained in:
@ -23,7 +23,7 @@ func Edit(ctx *aero.Context) string {
|
||||
|
||||
ctx.Data = &arn.OpenGraph{
|
||||
Tags: map[string]string{
|
||||
"og:title": track.Title,
|
||||
"og:title": track.NewTitle.ByUser(user),
|
||||
"og:url": "https://" + ctx.App.Config.Domain + track.Link(),
|
||||
"og:site_name": "notify.moe",
|
||||
"og:type": "music.song",
|
||||
|
@ -32,7 +32,7 @@ func Get(ctx *aero.Context) string {
|
||||
|
||||
openGraph := &arn.OpenGraph{
|
||||
Tags: map[string]string{
|
||||
"og:title": track.Title,
|
||||
"og:title": track.NewTitle.ByUser(user),
|
||||
"og:description": track.MainAnime().Title.Canonical + " (" + strings.Join(descriptionTags, ", ") + ")",
|
||||
"og:url": "https://" + ctx.App.Config.Domain + track.Link(),
|
||||
"og:site_name": ctx.App.Config.Domain,
|
||||
|
@ -2,10 +2,10 @@ component SoundTrackPage(track *arn.SoundTrack, user *arn.User)
|
||||
SoundTrackTabs(track, user)
|
||||
|
||||
.soundtrack-full-page
|
||||
if track.Title == ""
|
||||
if track.NewTitle.ByUser(user) == ""
|
||||
h1.mountable untitled
|
||||
else
|
||||
h1.mountable= track.Title
|
||||
h1.mountable= track.NewTitle.ByUser(user)
|
||||
|
||||
.widget-form.soundtrack-media-list
|
||||
each media in track.Media
|
||||
|
Reference in New Issue
Block a user