fix simpleLinks in MarkdownLink

This commit is contained in:
Sean Yesmunt 2020-10-23 10:30:11 -04:00
parent 6c6dacb195
commit 33bf50e91b

View file

@ -64,7 +64,7 @@ function MarkdownLink(props: Props) {
// Return plain text if no valid url // Return plain text if no valid url
// Return external link if protocol is http or https // Return external link if protocol is http or https
// Return local link if protocol is lbry uri // Return local link if protocol is lbry uri
if ((protocol && protocol[0] === 'lbry:' && isURIValid(decodedUri)) || lbryUrlFromLink) { if (!simpleLinks && ((protocol && protocol[0] === 'lbry:' && isURIValid(decodedUri)) || lbryUrlFromLink)) {
element = ( element = (
<ClaimLink <ClaimLink
uri={lbryUrlFromLink || decodedUri} uri={lbryUrlFromLink || decodedUri}