handle resolving vanity channel urls #328
2 changed files with 10 additions and 0 deletions
5
dist/bundle.es.js
vendored
5
dist/bundle.es.js
vendored
|
@ -5168,6 +5168,7 @@ function handleClaimAction(state, action) {
|
|||
const {
|
||||
resolveInfo
|
||||
} = action.data;
|
||||
|
||||
const byUri = Object.assign({}, state.claimsByUri);
|
||||
const byId = Object.assign({}, state.byId);
|
||||
const channelClaimCounts = Object.assign({}, state.channelClaimCounts);
|
||||
|
@ -5196,6 +5197,10 @@ function handleClaimAction(state, action) {
|
|||
}
|
||||
|
||||
if (channel && channel.claim_id) {
|
||||
if (!stream) {
|
||||
byUri[url] = channel.claim_id;
|
||||
}
|
||||
|
||||
if (claimsInChannel) {
|
||||
channelClaimCounts[url] = claimsInChannel;
|
||||
channelClaimCounts[channel.canonical_url] = claimsInChannel;
|
||||
|
|
|
@ -109,6 +109,7 @@ function handleClaimAction(state: State, action: any): State {
|
|||
claimsInChannel: ?number,
|
||||
},
|
||||
} = action.data;
|
||||
|
||||
const byUri = Object.assign({}, state.claimsByUri);
|
||||
const byId = Object.assign({}, state.byId);
|
||||
const channelClaimCounts = Object.assign({}, state.channelClaimCounts);
|
||||
|
@ -137,6 +138,10 @@ function handleClaimAction(state: State, action: any): State {
|
|||
}
|
||||
|
||||
if (channel && channel.claim_id) {
|
||||
if (!stream) {
|
||||
byUri[url] = channel.claim_id;
|
||||
}
|
||||
|
||||
if (claimsInChannel) {
|
||||
channelClaimCounts[url] = claimsInChannel;
|
||||
channelClaimCounts[channel.canonical_url] = claimsInChannel;
|
||||
|
|
Loading…
Reference in a new issue