mirror of
https://github.com/friendica/friendica
synced 2024-11-18 04:23:41 +00:00
Don't call mb_strlen() on $body if it isn't set in Model\Post\Counts
- Address https://github.com/friendica/friendica/issues/13761#issuecomment-1978354153
This commit is contained in:
parent
b8b76e870d
commit
111df607bc
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ class Counts
|
|||
Activity::EMOJIREACT, Activity::ANNOUNCE, Activity::VIEW, Activity::READ])) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
$condition = ['thr-parent-id' => $uri_id, 'vid' => $vid, 'deleted' => false];
|
||||
|
||||
if ($body == $verb) {
|
||||
|
@ -52,7 +52,7 @@ class Counts
|
|||
} elseif ($verb == Activity::POST) {
|
||||
$condition['gravity'] = Item::GRAVITY_COMMENT;
|
||||
$body = '';
|
||||
} elseif (($verb != Activity::POST) && (mb_strlen($body) == 1) && Smilies::isEmojiPost($body)) {
|
||||
} elseif ($body && mb_strlen($body) == 1 && Smilies::isEmojiPost($body)) {
|
||||
$condition['body'] = $body;
|
||||
} else {
|
||||
$body = '';
|
||||
|
|
Loading…
Reference in a new issue