Fix full url

This commit is contained in:
Rafael 2022-03-16 08:57:24 -03:00 committed by Thomas Zarebczan
parent f4fdee8331
commit e93d734fa3

View file

@ -16,9 +16,13 @@ import LivestreamPage from './view';
const select = (state, props) => {
const { uri } = props;
const channelClaimId = getChannelIdFromClaim(selectClaimForUri(state, uri));
const claim = selectClaimForUri(state, uri);
const { canonical_url } = claim || {};
const channelClaimId = getChannelIdFromClaim(claim);
return {
uri: canonical_url || '',
isAuthenticated: selectUserVerifiedEmail(state),
channelClaimId,
chatDisabled: makeSelectTagInClaimOrChannelForUri(uri, DISABLE_COMMENTS_TAG)(state),