|
|
@ -49,6 +49,8 @@ class OpenGraph {
|
|
|
|
resourceId: this.resourceId,
|
|
|
|
resourceId: this.resourceId,
|
|
|
|
resourceUrl,
|
|
|
|
resourceUrl,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
media: this.type.includes('video') ? `<video src="${resourceUrl}" style="height: 50vh;">` : `<img src="${resourceUrl}" style="height: 50vh;">`,
|
|
|
|
|
|
|
|
|
|
|
|
ogtype: this.type.includes('video') ? 'video.other' : 'image',
|
|
|
|
ogtype: this.type.includes('video') ? 'video.other' : 'image',
|
|
|
|
type: this.type.includes('video') ? 'video' : 'image',
|
|
|
|
type: this.type.includes('video') ? 'video' : 'image',
|
|
|
|
title: (this.title.length != 0) ? `<meta property="og:title" content="${this.title}">` : '',
|
|
|
|
title: (this.title.length != 0) ? `<meta property="og:title" content="${this.title}">` : '',
|
|
|
@ -84,6 +86,8 @@ const html = `
|
|
|
|
</head>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<body>
|
|
|
|
Open Graph response for <a href="{{{homepage}}}" target="_blank">ass</a> {{{version}}}
|
|
|
|
Open Graph response for <a href="{{{homepage}}}" target="_blank">ass</a> {{{version}}}
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
{{{media}}}
|
|
|
|
</body>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
</html>
|
|
|
|
`;
|
|
|
|
`;
|
|
|
|