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