mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-29 13:59:26 +01:00
expose video thumbnail to 3rd parties "cards"
This commit is contained in:
parent
1ec5e846c5
commit
1626e50fbf
1 changed files with 2 additions and 1 deletions
|
@ -24,13 +24,14 @@ block og
|
||||||
meta(property='og:video:url' content= video.url)
|
meta(property='og:video:url' content= video.url)
|
||||||
meta(property='og:video:secure_url' content= video.url)
|
meta(property='og:video:secure_url' content= video.url)
|
||||||
meta(property='og:video:type' content= video.type)
|
meta(property='og:video:type' content= video.type)
|
||||||
|
meta(property='og:image' content= video.thumbnailUrl)
|
||||||
// FIXME: add width and height
|
// FIXME: add width and height
|
||||||
// FIXME: add embed player for Twitter
|
// FIXME: add embed player for Twitter
|
||||||
if images.length
|
if images.length
|
||||||
meta(property='twitter:card' content='summary_large_image')
|
meta(property='twitter:card' content='summary_large_image')
|
||||||
each image in images
|
each image in images
|
||||||
meta(property='og:image' content= image.url)
|
meta(property='og:image' content= image.url)
|
||||||
else
|
else if !videos.length
|
||||||
meta(property='twitter:card' content='summary')
|
meta(property='twitter:card' content='summary')
|
||||||
meta(property='og:image' content= avatarUrl)
|
meta(property='og:image' content= avatarUrl)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue