]> git.mxchange.org Git - friendica-addons.git/blobdiff - dwpost/dwpost.php
Refactor bbcode() into BBCode::convert()
[friendica-addons.git] / dwpost / dwpost.php
index d9d06675f687c5a6ba47f79dbbd06daf7fa7fb22..7e8488c376796c85445414fbbc4d678dfaa87cbb 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 dwpost_send(&$a,&$b) {
                require_once('include/bbcode.php');
 
                $title = $b['title'];
-               $post = bbcode($b['body']);
+               $post = BBCode::convert($b['body']);
                $post = xmlify($post);
                $tags = dwpost_get_tags($b['tag']);