Use full path for OpenGraph og:image

This commit is contained in:
Fijxu 2024-05-01 00:47:58 -04:00
parent 0d3eb678f0
commit 0e25613f5a
Signed by: Fijxu
GPG Key ID: 32C1DDF333EDA6A4
3 changed files with 7 additions and 7 deletions

View File

@ -8,11 +8,11 @@ on:
push:
branches: ["*"]
paths:
- './src/**'
- './lib/**'
- './spec/**'
- './locales/**'
- './docker/**'
- 'src/**'
- 'lib/**'
- 'spec/**'
- 'locales/**'
- 'docker/**'
- 'shard.yml'
- 'videojs-dependencies.yml'

View File

@ -30,7 +30,7 @@
<meta property="og:site_name" content="Invidious">
<meta property="og:url" content="<%= HOST_URL %>/channel/<%= ucid %>">
<meta property="og:title" content="<%= author %>">
<meta property="og:image" content="/ggpht<%= channel_profile_pic %>">
<meta property="og:image" content="<%= HOST_URL %>/ggpht<%= channel_profile_pic %>">
<meta property="og:description" content="<%= channel.description %>">
<meta name="twitter:card" content="summary">
<meta name="twitter:url" content="<%= HOST_URL %>/channel/<%= ucid %>">

View File

@ -10,7 +10,7 @@
<meta property="og:site_name" content="<%= author %> | Invidious">
<meta property="og:url" content="<%= HOST_URL %>/watch?v=<%= video.id %>">
<meta property="og:title" content="<%= title %>">
<meta property="og:image" content="/vi/<%= video.id %>/maxres.jpg">
<meta property="og:image" content="<%= HOST_URL %>/vi/<%= video.id %>/maxres.jpg">
<meta property="og:description" content="<%= HTML.escape(video.short_description) %>">
<meta property="og:type" content="video.other">
<meta property="og:video:url" content="<%= HOST_URL %>/embed/<%= video.id %>">