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:
parent
74ab5bbf84
commit
87e67aa714
2 changed files with 2 additions and 2 deletions
2
dist/bundle.es.js
vendored
2
dist/bundle.es.js
vendored
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue