Compare commits

...

1 commit

Author SHA1 Message Date
infiinte-persistence
9eb308c58e
makeSelectClaimForUri: Use either canonical or permanent url for repost data
## Issue
Closes 5673 (lbry-desktop): Reposts are all listed under "Annoymous"
2021-03-15 12:50:59 +08:00
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; const repostedClaim = claim && claim.reposted_claim;
if (repostedClaim && returnRepost) { 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, { return _extends$3({}, repostedClaim, {
repost_url: uri, repost_url: uri,

View file

@ -127,7 +127,7 @@ export const makeSelectClaimForUri = (uri: string, returnRepost: boolean = true)
const repostedClaim = claim && claim.reposted_claim; const repostedClaim = claim && claim.reposted_claim;
if (repostedClaim && returnRepost) { 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 { return {
...repostedClaim, ...repostedClaim,