diff options
author | Vitor Mattos <vitor@php.rio> | 2022-01-17 09:14:56 -0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2022-01-21 08:39:41 -0300 |
commit | b9f74584a1e808019235d349fbae3f1fd1bdd711 (patch) | |
tree | 502bfce2e5ad076158b8e04b2471aaaaec02e0c6 /lib/private/Comments | |
parent | c9f2f0077745da8d0570b387557076ce9c948dc4 (diff) | |
download | nextcloud-server-b9f74584a1e808019235d349fbae3f1fd1bdd711.tar.gz nextcloud-server-b9f74584a1e808019235d349fbae3f1fd1bdd711.zip |
Fix check after change from string to mb_string
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'lib/private/Comments')
-rw-r--r-- | lib/private/Comments/Manager.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Comments/Manager.php b/lib/private/Comments/Manager.php index a8c4e2bf09e..e87ac5cd5cc 100644 --- a/lib/private/Comments/Manager.php +++ b/lib/private/Comments/Manager.php @@ -148,8 +148,8 @@ class Manager implements ICommentsManager { throw new \UnexpectedValueException('Actor, Object and Verb information must be provided for saving'); } - if ($comment->getVerb() === 'reaction' && mb_strlen($comment->getMessage()) > 8) { - throw new \UnexpectedValueException('Reactions cannot be longer than 8 bytes'); + if ($comment->getVerb() === 'reaction' && mb_strlen($comment->getMessage()) > 2) { + throw new \UnexpectedValueException('Reactions cannot be longer than 2 chars (emoji with skin tone have two chars)'); } if ($comment->getId() === '') { |