Replacing numberic values with constants for the BBCode conversion

This commit is contained in:
Michael 2020-05-16 16:48:08 +00:00
parent 59cfb05c3a
commit b406d737b5
5 changed files with 12 additions and 12 deletions

View file

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