diff --git a/src/renderer/component/socialShare/view.jsx b/src/renderer/component/socialShare/view.jsx index c84f7c8d0..f340e082a 100644 --- a/src/renderer/component/socialShare/view.jsx +++ b/src/renderer/component/socialShare/view.jsx @@ -21,12 +21,20 @@ class SocialShare extends React.PureComponent { input: ?HTMLInputElement; render() { - const { claim_id: claimId, name: claimName, channel_name: channelName } = this.props.claim; + const { + claim_id: claimId, + name: claimName, + channel_name: channelName, + value, + } = this.props.claim; + const channelClaimId = + value && value.publisherSignature && value.publisherSignature.certificateId; const { onDone } = this.props; const speechPrefix = 'http://spee.ch/'; - const speechURL = channelName - ? `${speechPrefix}${channelName}/${claimName}` - : `${speechPrefix}${claimName}#${claimId}`; + const speechURL = + channelName && channelClaimId + ? `${speechPrefix}${channelName}:${channelClaimId}/${claimName}` + : `${speechPrefix}${claimName}#${claimId}`; return (