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

@ -550,7 +550,7 @@ function statusnet_post_hook(App $a, &$b)
PConfig::set($b['uid'], 'statusnet', 'max_char', $max_char);
$tempfile = "";
$msgarr = BBCode::toPlaintext($b, $max_char, true, 7);
$msgarr = Item::getPlaintextPost($b, $max_char, true, 7);
$msg = $msgarr["text"];
if (($msg == "") && isset($msgarr["title"]))
@ -709,7 +709,7 @@ function statusnet_prepare_body(App $a, &$b)
}
}
$msgarr = BBCode::toPlaintext($item, $max_char, true, 7);
$msgarr = Item::getPlaintextPost($item, $max_char, true, 7);
$msg = $msgarr["text"];
if (isset($msgarr["url"]) && ($msgarr["type"] != "photo")) {