mirror of
https://github.com/LBRYFoundation/lbry-wunderbot.git
synced 2025-08-31 17:31:32 +00:00
don't use channel names in URLs for now
Not supported in app/web yet.
This commit is contained in:
parent
07031889b3
commit
b451e990b3
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ function embedFromClaim(claim) {
|
||||||
case typeClaim:
|
case typeClaim:
|
||||||
let channelName = claim.channel_name ? claim.channel_name : 'Anonymous';
|
let channelName = claim.channel_name ? claim.channel_name : 'Anonymous';
|
||||||
let channelPermalink = claim.channel_name ? `${claim.channel_name}#${claim.publisher_id}` : '';
|
let channelPermalink = claim.channel_name ? `${claim.channel_name}#${claim.publisher_id}` : '';
|
||||||
let claimPermalink = claim.channel_name ? `${channelPermalink}/${claim.name}` : `${claim.name}#${claim.claim_id}`;
|
let claimPermalink = `${claim.name}#${claim.claim_id}`;
|
||||||
let metadata = JSON.parse(claim.value_as_json).Claim.stream.metadata;
|
let metadata = JSON.parse(claim.value_as_json).Claim.stream.metadata;
|
||||||
e.setAuthor(`New claim from ${channelName}`, 'http://barkpost-assets.s3.amazonaws.com/wp-content/uploads/2013/11/3dDoge.gif', `https://open.lbry.com/${claimPermalink}`)
|
e.setAuthor(`New claim from ${channelName}`, 'http://barkpost-assets.s3.amazonaws.com/wp-content/uploads/2013/11/3dDoge.gif', `https://open.lbry.com/${claimPermalink}`)
|
||||||
.setTitle(`lbry://${claimPermalink}`)
|
.setTitle(`lbry://${claimPermalink}`)
|
||||||
|
|
Loading…
Add table
Reference in a new issue