makeSelectClaimForUri: Use either canonical or permanent url for repost data

## Issue
Closes 5673 (lbry-desktop): Reposts are all listed under "Annoymous"
This commit is contained in:
infiinte-persistence 2021-03-15 12:50:11 +08:00 committed by Sean Yesmunt
parent 74ab5bbf84
commit 87e67aa714
2 changed files with 2 additions and 2 deletions

2
dist/bundle.es.js vendored
View file

@ -2270,7 +2270,7 @@ const makeSelectClaimForUri = (uri, returnRepost = true) => reselect.createSelec
const repostedClaim = claim && claim.reposted_claim;
if (repostedClaim && returnRepost) {
const channelUrl = claim.signing_channel && claim.signing_channel.canonical_url;
const channelUrl = claim.signing_channel && (claim.signing_channel.canonical_url || claim.signing_channel.permanent_url);
return _extends$3({}, repostedClaim, {
repost_url: uri,

View file

@ -127,7 +127,7 @@ export const makeSelectClaimForUri = (uri: string, returnRepost: boolean = true)
const repostedClaim = claim && claim.reposted_claim;
if (repostedClaim && returnRepost) {
const channelUrl = claim.signing_channel && claim.signing_channel.canonical_url;
const channelUrl = claim.signing_channel && (claim.signing_channel.canonical_url || claim.signing_channel.permanent_url);
return {
...repostedClaim,