Fix full url
This commit is contained in:
parent
f4fdee8331
commit
e93d734fa3
1 changed files with 5 additions and 1 deletions
|
@ -16,9 +16,13 @@ import LivestreamPage from './view';
|
||||||
|
|
||||||
const select = (state, props) => {
|
const select = (state, props) => {
|
||||||
const { uri } = props;
|
const { uri } = props;
|
||||||
const channelClaimId = getChannelIdFromClaim(selectClaimForUri(state, uri));
|
|
||||||
|
const claim = selectClaimForUri(state, uri);
|
||||||
|
const { canonical_url } = claim || {};
|
||||||
|
const channelClaimId = getChannelIdFromClaim(claim);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
uri: canonical_url || '',
|
||||||
isAuthenticated: selectUserVerifiedEmail(state),
|
isAuthenticated: selectUserVerifiedEmail(state),
|
||||||
channelClaimId,
|
channelClaimId,
|
||||||
chatDisabled: makeSelectTagInClaimOrChannelForUri(uri, DISABLE_COMMENTS_TAG)(state),
|
chatDisabled: makeSelectTagInClaimOrChannelForUri(uri, DISABLE_COMMENTS_TAG)(state),
|
||||||
|
|
Loading…
Add table
Reference in a new issue