Method moved to Plaintext

the shorten method moved to Plaintext class
This commit is contained in:
Adam Magness 2018-01-26 20:30:38 -05:00
parent e0197e0e6a
commit 9e3ebd61a2
3 changed files with 8 additions and 5 deletions

View 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 = "";