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 @@ -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 */

Loading…
Cancel
Save