]> git.mxchange.org Git - friendica-addons.git/blobdiff - statusnet/statusnet.php
Method moved to Plaintext
[friendica-addons.git] / statusnet / statusnet.php
index 40239af714463922547d7b7e524666192100f9dc..d74fd3134814147efa3d2fa17f29100304e2e135 100644 (file)
@@ -48,6 +48,7 @@ require_once 'include/enotify.php';
 use Friendica\App;
 use Friendica\Content\OEmbed;
 use Friendica\Content\Text\BBCode;
+use Friendica\Content\Text\Plaintext;
 use Friendica\Core\Addon;
 use Friendica\Core\Config;
 use Friendica\Core\L10n;
@@ -645,7 +646,7 @@ function statusnet_post_hook(App $a, &$b)
                $msg = $msgarr["text"];
 
                if (($msg == "") && isset($msgarr["title"]))
-                       $msg = BBCode::shortenMsg($msgarr["title"], $max_char - 50);
+                       $msg = Plaintext::shorten($msgarr["title"], $max_char - 50);
 
                $image = "";