No need to resolve as the uri should have all we need
This commit is contained in:
parent
29a1d89fa5
commit
f02dcb7fe7
1 changed files with 3 additions and 7 deletions
|
@ -566,11 +566,7 @@ function doCommentModToggleBlock(
|
||||||
blockerChannelClaims = blockerChannelClaims.filter((x) => blockerIds.includes(x.claim_id));
|
blockerChannelClaims = blockerChannelClaims.filter((x) => blockerIds.includes(x.claim_id));
|
||||||
}
|
}
|
||||||
|
|
||||||
const commenterClaim = selectClaimsByUri(state)[commenterUri];
|
const { channelName, channelClaimId } = parseURI(commenterUri);
|
||||||
if (!commenterClaim) {
|
|
||||||
console.error("Can't find claim to block"); // eslint-disable-line
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const creatorClaim = selectClaimsById(state)[creatorId];
|
const creatorClaim = selectClaimsById(state)[creatorId];
|
||||||
if (creatorId && !creatorClaim) {
|
if (creatorId && !creatorClaim) {
|
||||||
|
@ -587,8 +583,8 @@ function doCommentModToggleBlock(
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const commenterIdForAction = commenterClaim ? commenterClaim.claim_id : null;
|
const commenterIdForAction = channelClaimId;
|
||||||
const commenterNameForAction = commenterClaim ? commenterClaim.name : null;
|
const commenterNameForAction = channelName;
|
||||||
|
|
||||||
let channelSignatures = [];
|
let channelSignatures = [];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue