mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-11 19:08:49 +00:00
Plaintext was renamed to BBCode
update class name
This commit is contained in:
parent
7b95efedd1
commit
9c9088069a
5 changed files with 19 additions and 19 deletions
|
@ -61,7 +61,7 @@
|
|||
|
||||
use Friendica\App;
|
||||
use Friendica\Content\OEmbed;
|
||||
use Friendica\Content\Text\Plaintext;
|
||||
use Friendica\Content\Text\BBCode;
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\L10n;
|
||||
|
@ -525,11 +525,11 @@ function twitter_post_hook(App $a, &$b)
|
|||
$tweet = new TwitterOAuth($ckey, $csecret, $otoken, $osecret);
|
||||
|
||||
$max_char = 280;
|
||||
$msgarr = Plaintext::toPlaintext($b, $max_char, true, 8);
|
||||
$msgarr = BBCode::toPlaintext($b, $max_char, true, 8);
|
||||
$msg = $msgarr["text"];
|
||||
|
||||
if (($msg == "") && isset($msgarr["title"])) {
|
||||
$msg = Plaintext::shortenMsg($msgarr["title"], $max_char - 50);
|
||||
$msg = BBCode::shortenMsg($msgarr["title"], $max_char - 50);
|
||||
}
|
||||
|
||||
$image = "";
|
||||
|
@ -593,11 +593,11 @@ function twitter_post_hook(App $a, &$b)
|
|||
if (strlen($msg) && ($image == "")) {
|
||||
// -----------------
|
||||
$max_char = 280;
|
||||
$msgarr = Plaintext::toPlaintext($b, $max_char, true, 8);
|
||||
$msgarr = BBCode::toPlaintext($b, $max_char, true, 8);
|
||||
$msg = $msgarr["text"];
|
||||
|
||||
if (($msg == "") && isset($msgarr["title"])) {
|
||||
$msg = Plaintext::shortenMsg($msgarr["title"], $max_char - 50);
|
||||
$msg = BBCode::shortenMsg($msgarr["title"], $max_char - 50);
|
||||
}
|
||||
|
||||
if (isset($msgarr["url"])) {
|
||||
|
@ -789,7 +789,7 @@ function twitter_prepare_body(App $a, &$b)
|
|||
}
|
||||
}
|
||||
|
||||
$msgarr = Plaintext::toPlaintext($item, $max_char, true, 8);
|
||||
$msgarr = BBCode::toPlaintext($item, $max_char, true, 8);
|
||||
$msg = $msgarr["text"];
|
||||
|
||||
if (isset($msgarr["url"]) && ($msgarr["type"] != "photo")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue