Move BBCode::toPlaintext to Item::getPlaintextPost

This commit is contained in:
Hypolite Petovan 2018-04-21 04:12:50 -04:00
parent cf5ec0df96
commit 776aae9147
3 changed files with 6 additions and 6 deletions

View file

@ -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")) {