Limit smilies replacement to BBCode::convert

This commit is contained in:
Hypolite Petovan 2019-06-20 15:00:33 -04:00
parent 5e4ace271b
commit 9545ff614b
3 changed files with 6 additions and 9 deletions

View file

@ -143,13 +143,9 @@ function redir_private_images($a, &$item)
* @return string Formattet HTML.
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
function prepare_text($text) {
if (stristr($text, '[nosmile]')) {
$s = BBCode::convert($text);
} else {
$s = Smilies::replace(BBCode::convert($text));
}
function prepare_text($text)
{
$s = BBCode::convert($text);
return trim($s);
}