mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-10 18:38: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
|
@ -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"])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue