Updated OG tags

This commit is contained in:
Eduard Urbach 2018-04-16 16:33:23 +02:00
parent 1e66046463
commit 8d50f9583e

View File

@ -30,8 +30,8 @@ func getOpenGraph(ctx *aero.Context, amv *arn.AMV) *arn.OpenGraph {
if amv.File != "" { if amv.File != "" {
openGraph.Tags["og:video"] = "https://" + ctx.App.Config.Domain + "/videos/amvs/" + 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:type"] = "video/webm"
openGraph.Tags["og:video:width"] = "400" openGraph.Tags["og:video:width"] = "640"
openGraph.Tags["og:video:height"] = "225" openGraph.Tags["og:video:height"] = "360"
openGraph.Meta["twitter:player"] = openGraph.Tags["og:video"] openGraph.Meta["twitter:player"] = openGraph.Tags["og:video"]
openGraph.Meta["twitter:player:width"] = openGraph.Tags["og:video:width"] openGraph.Meta["twitter:player:width"] = openGraph.Tags["og:video:width"]