use claim url for download link on homepage to fix reposts
This commit is contained in:
parent
93626b36b4
commit
af4bd2bcc9
1 changed files with 3 additions and 2 deletions
|
@ -58,7 +58,8 @@ function ClaimPreviewTile(props: Props) {
|
|||
const shouldFetch = claim === undefined;
|
||||
const thumbnailUrl = useGetThumbnail(uri, claim, streamingUrl, getFile, placeholder) || thumbnail;
|
||||
const claimsInChannel = (claim && claim.meta.claims_in_channel) || 0;
|
||||
const navigateUrl = claim ? formatLbryUrlForWeb(claim.canonical_url) : undefined;
|
||||
const canonicalUrl = claim && claim.canonical_url;
|
||||
const navigateUrl = canonicalUrl ? formatLbryUrlForWeb(canonicalUrl) : undefined;
|
||||
|
||||
const navLinkProps = {
|
||||
to: navigateUrl,
|
||||
|
@ -157,7 +158,7 @@ function ClaimPreviewTile(props: Props) {
|
|||
<React.Fragment>
|
||||
{/* @if TARGET='app' */}
|
||||
<div className="claim-tile__hover-actions">
|
||||
<FileDownloadLink uri={uri} hideOpenButton />
|
||||
<FileDownloadLink uri={canonicalUrl} hideOpenButton />
|
||||
</div>
|
||||
{/* @endif */}
|
||||
<div className="claim-tile__file-properties">
|
||||
|
|
Loading…
Reference in a new issue