From c1695593d36275b924162d2058b2e6255f04334a Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sun, 1 Sep 2019 09:56:40 +0900 Subject: [PATCH] Minor change --- pages/soundtrack/edit.go | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/pages/soundtrack/edit.go b/pages/soundtrack/edit.go index a986fdf4..5e8cecab 100644 --- a/pages/soundtrack/edit.go +++ b/pages/soundtrack/edit.go @@ -3,7 +3,6 @@ package soundtrack import ( "net/http" - "github.com/animenotifier/notify.moe/assets" "github.com/animenotifier/notify.moe/components" "github.com/animenotifier/notify.moe/middleware" "github.com/animenotifier/notify.moe/utils" @@ -24,18 +23,6 @@ func Edit(ctx aero.Context) error { } customCtx := ctx.(*middleware.OpenGraphContext) - customCtx.OpenGraph = &arn.OpenGraph{ - Tags: map[string]string{ - "og:title": track.Title.ByUser(user), - "og:url": "https://" + assets.Domain + track.Link(), - "og:site_name": "notify.moe", - "og:type": "music.song", - }, - } - - if track.MainAnime() != nil { - customCtx.OpenGraph.Tags["og:image"] = track.MainAnime().ImageLink("large") - } - + customCtx.OpenGraph = getOpenGraph(track) return ctx.HTML(components.SoundTrackTabs(track, user) + editform.Render(track, "Edit soundtrack", user)) }