Browse Source

Parser fix, 2

imwald
Nuša Pukšič 4 months ago
parent
commit
100fe900be
  1. 2
      src/Util/CommonMark/NostrSchemeExtension/NostrSchemeParser.php

2
src/Util/CommonMark/NostrSchemeExtension/NostrSchemeParser.php

@ -40,7 +40,7 @@ class NostrSchemeParser implements InlineParserInterface @@ -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 */

Loading…
Cancel
Save