don't use channel names in URLs for now

Not supported in app/web yet.
This commit is contained in:
Thomas Zarebczan 2019-07-26 17:55:51 -04:00 committed by GitHub
parent 07031889b3
commit b451e990b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,7 +55,7 @@ function embedFromClaim(claim) {
case typeClaim:
let channelName = claim.channel_name ? claim.channel_name : 'Anonymous';
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;
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}`)