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