From 120c7f31c51a8bc9744f451bb2a5c703778ffb15 Mon Sep 17 00:00:00 2001 From: YULIUS KURNIAWAN KRISTIANTO Date: Thu, 3 Oct 2019 02:56:26 +0700 Subject: [PATCH] fix og image and added fbapp id like on LBRY.com to fix issues #2824 --- src/platforms/web/server.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/platforms/web/server.js b/src/platforms/web/server.js index 3494190ac..18f2754f7 100644 --- a/src/platforms/web/server.js +++ b/src/platforms/web/server.js @@ -63,7 +63,9 @@ const defaultHead = '\n' + '\n' + '\n' + - ''; + ''; + ''; + app.get('*', async (req, res) => { let html = readFileSync(path.join(__dirname, '/index.html'), 'utf8'); @@ -87,7 +89,7 @@ app.get('*', async (req, res) => { ? truncateDescription(claim.description) : `Watch ${title} on LBRY.tv`; const claimLanguage = claim.language || 'en_US'; - const claimThumbnail = claim.thumbnail_url || '/og.png'; + const claimThumbnail = claim.thumbnail_url || 'https://beta.lbry.tv/og.png'; const claimTitle = claim.channel && !isChannel ? `${title} from ${claim.channel} on LBRY.tv` : `${title} on LBRY.tv`; @@ -99,6 +101,7 @@ app.get('*', async (req, res) => { if (claim.tags) { head += ``; } + head += ``; head += ``; head += ``; head += ``;