Fixed so claimId is in the published link to content, this will fix #192.

This commit is contained in:
filipnyquist 2018-06-28 14:42:11 +02:00
parent 1efdb95677
commit 859d9bf5e1

View file

@ -156,9 +156,9 @@ function announceClaim(claim, claimBlockHeight, currentHeight) {
if (value) { if (value) {
/* /*
if (channelName) { if (channelName) {
text.push("Channel: lbry://" + channelName); text.push("Channel: lbry://" + channelName);
} }
else else
*/ */
console.log(value); console.log(value);
@ -197,7 +197,7 @@ function announceClaim(claim, claimBlockHeight, currentHeight) {
const richEmbeded = { const richEmbeded = {
author: { author: {
name: value['author'] || 'Anonymous', name: value['author'] || 'Anonymous',
url: 'http://open.lbry.io/' + claim['name'], url: `http://open.lbry.io/${claim['name']}#${claim['claimId']}`,
icon_url: 'http://barkpost-assets.s3.amazonaws.com/wp-content/uploads/2013/11/3dDoge.gif' icon_url: 'http://barkpost-assets.s3.amazonaws.com/wp-content/uploads/2013/11/3dDoge.gif'
}, },
title: 'lbry://' + (channelName ? channelName + '/' : '') + claim['name'], title: 'lbry://' + (channelName ? channelName + '/' : '') + claim['name'],