]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Text/NPF.php
Unified BBCode conversion, improved proxy functionality
[friendica.git] / src / Content / Text / NPF.php
index ea9304306e5d07acde24e48b71b1a590c83fe0ad..f5a6e2dc188baf09a24f95accfdb71895a918b1a 100644 (file)
@@ -45,7 +45,7 @@ class NPF
        {
                $bbcode = self::prepareBody($bbcode);
 
-               $html = BBCode::convert($bbcode, false, BBCode::NPF);
+               $html = BBCode::convertForUriId($uri_id, $bbcode, BBCode::NPF);
                if (empty($html)) {
                        return [];
                }
@@ -361,9 +361,9 @@ class NPF
        private static function addBlock(string $text, array $formatting, array $npf, array $callstack): array
        {
                $block = [
-                       'type'     => 'text',
-                       'subtype'  => '',
-                       'text'     => $text,
+                       'type'    => 'text',
+                       'subtype' => '',
+                       'text'    => $text,
                ];
 
                if (!empty($formatting)) {