mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-12 03:18:48 +00:00
Move BBCode::toPlaintext to Item::getPlaintextPost
This commit is contained in:
parent
cf5ec0df96
commit
776aae9147
3 changed files with 6 additions and 6 deletions
|
@ -532,7 +532,7 @@ function twitter_post_hook(App $a, &$b)
|
|||
$connection->setTimeouts(10, 30);
|
||||
|
||||
$max_char = 280;
|
||||
$msgarr = BBCode::toPlaintext($b, $max_char, true, 8);
|
||||
$msgarr = Item::getPlaintextPost($b, $max_char, true, 8);
|
||||
$msg = $msgarr["text"];
|
||||
|
||||
if (($msg == "") && isset($msgarr["title"])) {
|
||||
|
@ -766,7 +766,7 @@ function twitter_prepare_body(App $a, &$b)
|
|||
}
|
||||
}
|
||||
|
||||
$msgarr = BBCode::toPlaintext($item, $max_char, true, 8);
|
||||
$msgarr = Item::getPlaintextPost($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