Fix reposted channels incorrectly showing the channel thumb
## Issue 6589 ## Notes `parseURI` will return `isChannel=false` due to the reposted channel URL not having the '@' symbol. Since we already have the claim object, check `value_type` directly instead.
This commit is contained in:
parent
b164a5d1f4
commit
4fc6b89975
1 changed files with 2 additions and 2 deletions
|
@ -102,11 +102,10 @@ function ClaimPreviewTile(props: Props) {
|
||||||
onClick: (e) => e.stopPropagation(),
|
onClick: (e) => e.stopPropagation(),
|
||||||
};
|
};
|
||||||
|
|
||||||
let isChannel;
|
|
||||||
let isValid = false;
|
let isValid = false;
|
||||||
if (uri) {
|
if (uri) {
|
||||||
try {
|
try {
|
||||||
({ isChannel } = parseURI(uri));
|
parseURI(uri);
|
||||||
isValid = true;
|
isValid = true;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
isValid = false;
|
isValid = false;
|
||||||
|
@ -114,6 +113,7 @@ function ClaimPreviewTile(props: Props) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const signingChannel = claim && claim.signing_channel;
|
const signingChannel = claim && claim.signing_channel;
|
||||||
|
const isChannel = claim && claim.value_type === 'channel';
|
||||||
const channelUri = !isChannel ? signingChannel && signingChannel.permanent_url : claim && claim.permanent_url;
|
const channelUri = !isChannel ? signingChannel && signingChannel.permanent_url : claim && claim.permanent_url;
|
||||||
|
|
||||||
function handleClick(e) {
|
function handleClick(e) {
|
||||||
|
|
Loading…
Reference in a new issue