nsfw wont unfurl and images link to source

This commit is contained in:
bill bittner 2017-08-08 16:33:00 -07:00
parent 7b1e4ec8d1
commit d9be5f3366
2 changed files with 3 additions and 1 deletions

View file

@ -50,7 +50,7 @@ const hbs = expressHandlebars.create({
},
addOpenGraph (title, mimeType, showUrl, source) {
let basicTags = `<meta property="og:title" content="${title}">
<meta property="og:url" content="${showUrl}" >
<meta property="og:url" content="${source}" >
<meta property="og:site_name" content="Spee.ch" >
<meta property="og:description" content="View or download ${title} from spee.ch: the open-source, decentralized content host." >`;
if (mimeType === 'video/mp4') {

View file

@ -8,8 +8,10 @@
<link rel="stylesheet" href="/assets/css/generalStyle.css" type="text/css">
<link rel="stylesheet" href="/assets/css/componentStyle.css" type="text/css">
<meta property="fb:app_id" content="1371961932852223">
{{#unless fileInfo.nsfw}}
{{{addTwitterCard fileInfo.fileType openGraphInfo.source openGraphInfo.embedUrl openGraphInfo.directFileUrl}}}
{{{addOpenGraph fileInfo.name fileInfo.fileType openGraphInfo.showUrl openGraphInfo.source}}}
{{/unless}}
</head>
<body>
{{{ body }}}