]> git.mxchange.org Git - friendica-addons.git/blobdiff - ijpost/ijpost.php
Refactor bbcode() into BBCode::convert()
[friendica-addons.git] / ijpost / ijpost.php
index cd4d72cdd8bdc62e7444d12d8b7d985d2a25f2f2..5ccb67612b363b838747325f195e759bda0ef697 100644 (file)
@@ -8,6 +8,7 @@
  * Author: Cat Gray <https://free-haven.org/profile/catness>
  */
 
+use Friendica\Content\Text\BBCode;
 use Friendica\Core\Addon;
 use Friendica\Core\L10n;
 use Friendica\Core\PConfig;
@@ -182,7 +183,7 @@ function ijpost_send(&$a,&$b) {
                require_once('include/datetime.php');
 
                $title = $b['title'];
-               $post = bbcode($b['body']);
+               $post = BBCode::convert($b['body']);
                $post = xmlify($post);
                $tags = ijpost_get_tags($b['tag']);