mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 08:58:49 +00:00
Method moved to Plaintext
the shorten method moved to Plaintext class
This commit is contained in:
parent
e0197e0e6a
commit
9e3ebd61a2
3 changed files with 8 additions and 5 deletions
|
@ -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 = "";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue