mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Add max video height on mobile
This commit is contained in:
parent
7ccfb37f32
commit
acbffe9c0f
2 changed files with 10 additions and 5 deletions
|
@ -100,11 +100,12 @@ function addOpenGraphAndOEmbedTags (htmlStringPage: string, video: VideoModel) {
|
|||
'@type': 'VideoObject',
|
||||
name: videoNameEscaped,
|
||||
description: videoDescriptionEscaped,
|
||||
thumbnailUrl: previewUrl,
|
||||
uploadDate: video.createdAt.toISOString(),
|
||||
duration: video.getActivityStreamDuration(),
|
||||
thumbnailURL: previewUrl,
|
||||
contentURL: videoUrl,
|
||||
embedURL: embedUrl,
|
||||
uploadDate: video.createdAt
|
||||
contentUrl: videoUrl,
|
||||
embedUrl: embedUrl,
|
||||
interactionCount: video.views
|
||||
}
|
||||
|
||||
let tagsString = ''
|
||||
|
@ -124,6 +125,9 @@ function addOpenGraphAndOEmbedTags (htmlStringPage: string, video: VideoModel) {
|
|||
// Schema.org
|
||||
tagsString += `<script type="application/ld+json">${JSON.stringify(schemaTags)}</script>`
|
||||
|
||||
// SEO
|
||||
tagsString += `<link rel="canonical" href="${videoUrl}" />`
|
||||
|
||||
return htmlStringPage.replace(OPENGRAPH_AND_OEMBED_COMMENT, tagsString)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue