mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-17 04:15:15 +02:00
Limit smilies replacement to BBCode::convert
This commit is contained in:
parent
5e4ace271b
commit
9545ff614b
3 changed files with 6 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue