Merge pull request #1981 from jessopb/shareUpdate

hotfix: share is broken; use currently working spee.ch share url
This commit is contained in:
Sean Yesmunt 2018-09-24 19:18:13 -04:00 committed by GitHub
commit 65afbb85d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,12 +21,20 @@ class SocialShare extends React.PureComponent<Props> {
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 (
<div>