diff --git a/helpers/fetch-metadata.js b/helpers/fetch-metadata.js index cd9402a..2bece14 100644 --- a/helpers/fetch-metadata.js +++ b/helpers/fetch-metadata.js @@ -115,9 +115,7 @@ module.exports = exports = (data, socket) => { body: body, json: true, method: apiRequestMethod, - url: `${process.env.NODE_ENV === "development" ? - `http://localhost:5200/${resolveMethod}` : - `http://daemon.lbry.tech/${resolveMethod}`}` + url: `${process.env.NODE_ENV === "development" ? `http://localhost:5200/${resolveMethod}` : `https://daemon.lbry.tech/${resolveMethod}`}` }, (error, response, body) => { if (error) { if (process.env.NODE_ENV !== "development") { @@ -143,7 +141,10 @@ module.exports = exports = (data, socket) => { return resolve(body.error); } - if (body.result.txid) explorerNotice = ` + if ( + body.result && + body.result.txid + ) explorerNotice = `
If you want proof of the tip you just gave, check it out on our blockchain explorer!
`;