Browse Source

Parser fix, 2

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

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

@ -38,8 +38,9 @@ class NostrSchemeParser implements InlineParserInterface
switch ($decoded->type) { switch ($decoded->type) {
case 'npub': case 'npub':
/** @var NPub $decoded */ /** @var NPub $object */
$inlineContext->getContainer()->appendChild(new NostrMentionLink(null, $decoded->data)); $object = $decoded->data;
$inlineContext->getContainer()->appendChild(new NostrMentionLink(null, $object->data));
break; break;
case 'nprofile': case 'nprofile':
/** @var NProfile $decodedProfile */ /** @var NProfile $decodedProfile */

Loading…
Cancel
Save