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