From 1e660464636deb908eaefed03470f4e0e28de5d3 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Mon, 16 Apr 2018 16:30:45 +0200 Subject: [PATCH] Updated OG tags --- pages/amv/opengraph.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/amv/opengraph.go b/pages/amv/opengraph.go index c449e4c7..70f63b36 100644 --- a/pages/amv/opengraph.go +++ b/pages/amv/opengraph.go @@ -30,8 +30,12 @@ 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"] = "400" + openGraph.Tags["og:video:height"] = "225" 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"] }