Merge pull request #1981 from jessopb/shareUpdate
hotfix: share is broken; use currently working spee.ch share url
This commit is contained in:
commit
65afbb85d6
1 changed files with 12 additions and 4 deletions
|
@ -21,12 +21,20 @@ class SocialShare extends React.PureComponent<Props> {
|
||||||
input: ?HTMLInputElement;
|
input: ?HTMLInputElement;
|
||||||
|
|
||||||
render() {
|
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 { onDone } = this.props;
|
||||||
const speechPrefix = 'http://spee.ch/';
|
const speechPrefix = 'http://spee.ch/';
|
||||||
const speechURL = channelName
|
const speechURL =
|
||||||
? `${speechPrefix}${channelName}/${claimName}`
|
channelName && channelClaimId
|
||||||
: `${speechPrefix}${claimName}#${claimId}`;
|
? `${speechPrefix}${channelName}:${channelClaimId}/${claimName}`
|
||||||
|
: `${speechPrefix}${claimName}#${claimId}`;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
|
Loading…
Reference in a new issue