From 07978a061eeeea0e95a381dab821bbd7f43e85ea Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 13 Feb 2024 09:22:12 +0000 Subject: mb_strlen() will return 2 for some emojis - possibly grapheme_strlen() will be better for this job --- Zotlabs/Lib/Activity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Zotlabs/Lib/Activity.php') 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 -- cgit v1.2.3