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
parent bf728f8716
commit 9eb308c58e
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0
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,