mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-11 10:58:48 +00:00
Replacing numberic values with constants for the BBCode conversion
This commit is contained in:
parent
59cfb05c3a
commit
b406d737b5
5 changed files with 12 additions and 12 deletions
|
@ -624,7 +624,7 @@ function twitter_post_hook(App $a, array &$b)
|
|||
|
||||
$b['body'] = twitter_update_mentions($b['body']);
|
||||
|
||||
$msgarr = ItemContent::getPlaintextPost($b, $max_char, true, 8);
|
||||
$msgarr = ItemContent::getPlaintextPost($b, $max_char, true, BBCode::TWITTER);
|
||||
Logger::info('Got plaintext', ['id' => $b['id'], 'message' => $msgarr]);
|
||||
$msg = $msgarr["text"];
|
||||
|
||||
|
@ -854,7 +854,7 @@ function twitter_prepare_body(App $a, array &$b)
|
|||
}
|
||||
}
|
||||
|
||||
$msgarr = ItemContent::getPlaintextPost($item, $max_char, true, 8);
|
||||
$msgarr = ItemContent::getPlaintextPost($item, $max_char, true, BBCode::TWITTER);
|
||||
$msg = $msgarr["text"];
|
||||
|
||||
if (isset($msgarr["url"]) && ($msgarr["type"] != "photo")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue