From 173465ebcf13bfe1600d0a5324faab8c3a8a5ca0 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Mon, 16 Apr 2018 16:28:42 +0200 Subject: [PATCH] Updated OG video tags --- layout/layout.pixy | 2 +- pages/amv/opengraph.go | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/layout/layout.pixy b/layout/layout.pixy index de8f2f98..4b769623 100644 --- a/layout/layout.pixy +++ b/layout/layout.pixy @@ -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") diff --git a/pages/amv/opengraph.go b/pages/amv/opengraph.go index 8f4144ab..c449e4c7 100644 --- a/pages/amv/opengraph.go +++ b/pages/amv/opengraph.go @@ -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"] }