From 9eb308c58ee0dd020c23e59633c647879321cfcd Mon Sep 17 00:00:00 2001 From: infiinte-persistence Date: Mon, 15 Mar 2021 12:50:11 +0800 Subject: [PATCH] makeSelectClaimForUri: Use either canonical or permanent url for repost data ## Issue Closes 5673 (lbry-desktop): Reposts are all listed under "Annoymous" --- dist/bundle.es.js | 2 +- src/redux/selectors/claims.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index bc8889d..e68cf3b 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -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, diff --git a/src/redux/selectors/claims.js b/src/redux/selectors/claims.js index 5d2ae91..20362ac 100644 --- a/src/redux/selectors/claims.js +++ b/src/redux/selectors/claims.js @@ -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,