]> git.mxchange.org Git - friendica-addons.git/blobdiff - twitter/twitter.php
Method moved to Plaintext
[friendica-addons.git] / twitter / twitter.php
index 57a9db2b497686167d2929b2e10dcf801a6a7de4..6402b82d2a508fe748f84d3e0cb93460061cb2f9 100644 (file)
@@ -62,6 +62,7 @@
 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;
@@ -529,7 +530,7 @@ function twitter_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 = "";
@@ -597,7 +598,7 @@ function twitter_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);
                        }
 
                        if (isset($msgarr["url"])) {