Merge pull request #207 from lbryio/filipnyquist-patch-4

Fixed so that the claimId is added to urls.
This commit is contained in:
filipnyquist 2018-07-19 15:56:02 +02:00 committed by GitHub
commit bc1968f0df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -207,7 +207,7 @@ function announceClaim(claim, claimBlockHeight, currentHeight) {
text: 'Block ' + claimBlockHeight + ' • Claim ID ' + claim['claimId']
},
image: { url: !value['nsfw'] ? value['thumbnail'] || '' : '' },
url: 'http://open.lbry.io/' + claim['name']
url: `http://open.lbry.io/${claim['name']}#${claim['claimId']}`
};
discordPost(text, richEmbeded);