diff options
author | Mario <mario@mariovavti.com> | 2024-02-13 09:22:12 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-02-13 09:22:12 +0000 |
commit | 07978a061eeeea0e95a381dab821bbd7f43e85ea (patch) | |
tree | d39c5af6545721ec7700ad8f78de52fd08d5ecd9 /Zotlabs | |
parent | 08b2356ed182c079f2163f659bf31b98e2f6bffb (diff) | |
download | volse-hubzilla-07978a061eeeea0e95a381dab821bbd7f43e85ea.tar.gz volse-hubzilla-07978a061eeeea0e95a381dab821bbd7f43e85ea.tar.bz2 volse-hubzilla-07978a061eeeea0e95a381dab821bbd7f43e85ea.zip |
mb_strlen() will return 2 for some emojis - possibly grapheme_strlen() will be better for this job
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Lib/Activity.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index ddd91f60b..dc934c44c 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -2189,7 +2189,7 @@ class Activity { $t = trim(self::get_textfield($act->data, 'content')); // Unicode emojis - if (mb_strlen($t) === 1) { + if (grapheme_strlen($t) === 1) { $content['content'] = $t; } // Custom emojis |