From 7ae8f792999d42c87591aa670df4ad29d70dba2e Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Wed, 5 Feb 2020 13:08:37 -0500 Subject: [PATCH] use claim url for download link to fix downloading reposts --- ui/component/claimPreview/view.jsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ui/component/claimPreview/view.jsx b/ui/component/claimPreview/view.jsx index a59a86c4e..e0c70b81e 100644 --- a/ui/component/claimPreview/view.jsx +++ b/ui/component/claimPreview/view.jsx @@ -90,6 +90,7 @@ const ClaimPreview = forwardRef((props: Props, ref: any) => { const abandoned = !isResolvingUri && !claim; const showPublishLink = abandoned && placeholder === 'publish'; const hideActions = type === 'small' || type === 'tooltip'; + const canonicalUrl = claim && claim.canonical_url; let isValid = false; if (uri) { @@ -239,9 +240,11 @@ const ClaimPreview = forwardRef((props: Props, ref: any) => { {/* @if TARGET='app' */} -
- -
+ {claim && ( +
+ +
+ )} {/* @endif */}