Updated OG video tags

This commit is contained in:
Eduard Urbach 2018-04-16 16:28:42 +02:00
parent c750a1b9aa
commit 173465ebcf
2 changed files with 1 additions and 5 deletions

View File

@ -17,7 +17,7 @@ component Layout(app *aero.Application, ctx *aero.Context, user *arn.User, openG
//- Color of the embed sidebar in Discord..
//- This is equal to link-color in the styles.
meta(name="theme-color", content="#d7260f")
meta(name="theme-color", content="#a7ff47")
//- Facebook App ID
meta(property="fb:app_id", content="915407915202908")

View File

@ -30,12 +30,8 @@ func getOpenGraph(ctx *aero.Context, amv *arn.AMV) *arn.OpenGraph {
if amv.File != "" {
openGraph.Tags["og:video"] = "https://" + ctx.App.Config.Domain + "/videos/amvs/" + amv.File
openGraph.Tags["og:video:type"] = "video/webm"
openGraph.Tags["og:video:width"] = "320"
openGraph.Tags["og:video:height"] = "180"
openGraph.Meta["twitter:player"] = openGraph.Tags["og:video"]
openGraph.Meta["twitter:player:width"] = openGraph.Tags["og:video:width"]
openGraph.Meta["twitter:player:height"] = openGraph.Tags["og:video:height"]
openGraph.Meta["twitter:player:stream"] = openGraph.Tags["og:video"]
openGraph.Meta["twitter:player:stream:content_type"] = openGraph.Tags["og:video:type"]
}