mirror of
https://github.com/friendica/friendica
synced 2025-04-25 17:50:11 +00:00
Fix warnings ("Divide by zero" and "key parameter is not a valid public key")
This commit is contained in:
parent
d0e9fdab5e
commit
efb1c630fd
2 changed files with 5 additions and 3 deletions
|
@ -1727,10 +1727,10 @@ class BBCode
|
|||
$text = Smilies::replace($text);
|
||||
}
|
||||
|
||||
if (DI::config()->get('system', 'big_emojis') && ($simple_html != self::DIASPORA)) {
|
||||
if (!$for_plaintext && DI::config()->get('system', 'big_emojis') && ($simple_html != self::DIASPORA)) {
|
||||
$conv = html_entity_decode(str_replace([' ', "\n", "\r"], '', $text));
|
||||
// Emojis are always 4 byte Unicode characters
|
||||
if (strlen($conv) / mb_strlen($conv) == 4) {
|
||||
if (!empty($conv) && (strlen($conv) / mb_strlen($conv) == 4)) {
|
||||
$text = '<span style="font-size: xx-large; line-height: initial;">' . $text . '</span>';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue