From e93d734fa3c864b0c4a9ad8af6c6cc8611a12cb0 Mon Sep 17 00:00:00 2001 From: Rafael Date: Wed, 16 Mar 2022 08:57:24 -0300 Subject: [PATCH] Fix full url --- ui/page/livestream/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/page/livestream/index.js b/ui/page/livestream/index.js index c6289d963..96c64c1a9 100644 --- a/ui/page/livestream/index.js +++ b/ui/page/livestream/index.js @@ -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),