mirror of
				https://gitea.invidious.io/iv-org/invidious.git
				synced 2024-08-15 00:53:41 +00:00 
			
		
		
		
	HTML: Use full URL in the og:image property (#4675)
Some opengraph implementations don't support a URL without the domain therefore failing to fetch the video thumbnail and channel image. This pull request basically fixes that.
This commit is contained in:
		
						commit
						e9bab06e90
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		|  | @ -30,13 +30,13 @@ | ||||||
| <meta property="og:site_name" content="Invidious"> | <meta property="og:site_name" content="Invidious"> | ||||||
| <meta property="og:url" content="<%= HOST_URL %>/channel/<%= ucid %>"> | <meta property="og:url" content="<%= HOST_URL %>/channel/<%= ucid %>"> | ||||||
| <meta property="og:title" content="<%= author %>"> | <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 property="og:description" content="<%= channel.description %>"> | ||||||
| <meta name="twitter:card" content="summary"> | <meta name="twitter:card" content="summary"> | ||||||
| <meta name="twitter:url" content="<%= HOST_URL %>/channel/<%= ucid %>"> | <meta name="twitter:url" content="<%= HOST_URL %>/channel/<%= ucid %>"> | ||||||
| <meta name="twitter:title" content="<%= author %>"> | <meta name="twitter:title" content="<%= author %>"> | ||||||
| <meta name="twitter:description" content="<%= channel.description %>"> | <meta name="twitter:description" content="<%= channel.description %>"> | ||||||
| <meta name="twitter:image" content="/ggpht<%= channel_profile_pic %>"> | <meta name="twitter:image" content="<%= HOST_URL %>/ggpht<%= channel_profile_pic %>"> | ||||||
| <link rel="alternate" type="application/rss+xml" title="RSS" href="/feed/channel/<%= ucid %>" /> | <link rel="alternate" type="application/rss+xml" title="RSS" href="/feed/channel/<%= ucid %>" /> | ||||||
| <%- end -%> | <%- end -%> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -10,7 +10,7 @@ | ||||||
| <meta property="og:site_name" content="<%= author %> | Invidious"> | <meta property="og:site_name" content="<%= author %> | Invidious"> | ||||||
| <meta property="og:url" content="<%= HOST_URL %>/watch?v=<%= video.id %>"> | <meta property="og:url" content="<%= HOST_URL %>/watch?v=<%= video.id %>"> | ||||||
| <meta property="og:title" content="<%= title %>"> | <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:description" content="<%= HTML.escape(video.short_description) %>"> | ||||||
| <meta property="og:type" content="video.other"> | <meta property="og:type" content="video.other"> | ||||||
| <meta property="og:video:url" content="<%= HOST_URL %>/embed/<%= video.id %>"> | <meta property="og:video:url" content="<%= HOST_URL %>/embed/<%= video.id %>"> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue