Merge pull request #194 from lbryio/claim-id-fix

Fixed so claimId is in the published link to content, this will fix #192
This commit is contained in:
filipnyquist 2018-06-28 14:43:27 +02:00 committed by GitHub
commit 335b2f3554
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -156,9 +156,9 @@ function announceClaim(claim, claimBlockHeight, currentHeight) {
if (value) {
/*
if (channelName) {
if (channelName) {
text.push("Channel: lbry://" + channelName);
}
}
else
*/
console.log(value);
@ -197,7 +197,7 @@ function announceClaim(claim, claimBlockHeight, currentHeight) {
const richEmbeded = {
author: {
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'
},
title: 'lbry://' + (channelName ? channelName + '/' : '') + claim['name'],