mirror of
https://github.com/friendica/friendica
synced 2025-04-25 11:10:11 +00: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
|
@ -1395,6 +1395,7 @@ class BBCode extends BaseObject
|
|||
|
||||
// This is actually executed in Item::prepareBody()
|
||||
|
||||
$nosmile = strpos($text, '[nosmile]') !== false;
|
||||
$text = str_replace('[nosmile]', '', $text);
|
||||
|
||||
// Check for font change text
|
||||
|
@ -1572,7 +1573,7 @@ class BBCode extends BaseObject
|
|||
}
|
||||
|
||||
// Replace non graphical smilies for external posts
|
||||
if ($simple_html) {
|
||||
if (!$nosmile && !$for_plaintext) {
|
||||
$text = Smilies::replace($text);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue