diff --git a/src/Util/CommonMark/NostrSchemeExtension/NostrSchemeParser.php b/src/Util/CommonMark/NostrSchemeExtension/NostrSchemeParser.php index 104d49f..ce69840 100644 --- a/src/Util/CommonMark/NostrSchemeExtension/NostrSchemeParser.php +++ b/src/Util/CommonMark/NostrSchemeExtension/NostrSchemeParser.php @@ -40,7 +40,7 @@ class NostrSchemeParser implements InlineParserInterface case 'npub': /** @var NPub $object */ $object = $decoded->data; - $inlineContext->getContainer()->appendChild(new NostrMentionLink(null, $object->data)); + $inlineContext->getContainer()->appendChild(new NostrMentionLink(null, $bechEncoded)); break; case 'nprofile': /** @var NProfile $decodedProfile */