*
* @todo For Twitter URLs aren't shortened, but they have to be calculated as if.
*/
- public static function shorten(string $msg, int $limit, int $uid = 0)
+ public static function shorten(string $msg, int $limit, int $uid = 0):string
{
$ellipsis = html_entity_decode("…", ENT_QUOTES, 'UTF-8');
}
}
- $html = BBCode::convert($post['text'] . ($post['after'] ?? ''), false, $htmlmode);
+ $html = BBCode::convertForUriId($item['uri-id'], $post['text'] . ($post['after'] ?? ''), $htmlmode);
$msg = HTML::toPlaintext($html, 0, true);
$msg = trim(html_entity_decode($msg, ENT_QUOTES, 'UTF-8'));