diff --git a/src/Content/Conversation.php b/src/Content/Conversation.php index 6cad2b980..710422ee7 100644 --- a/src/Content/Conversation.php +++ b/src/Content/Conversation.php @@ -1381,8 +1381,6 @@ class Conversation continue; } - $threadsid++; - // prevent private email from leaking. if ($item['network'] === Protocol::MAIL && $this->session->getLocalUserId() != $item['uid']) { continue; diff --git a/src/Module/Moderation/Report/Create.php b/src/Module/Moderation/Report/Create.php index 1185730ab..e309df3c1 100644 --- a/src/Module/Moderation/Report/Create.php +++ b/src/Module/Moderation/Report/Create.php @@ -338,7 +338,7 @@ class Create extends BaseModule '$category' => $category, '$rules' => $rules ?? [], '$comment' => BBCode::convertForUriId($contact['uri-id'] ?? 0, $this->session->get('report_comment') ?? '', BBCode::EXTERNAL), - '$posts' => count($request['uri-ids']), + '$posts' => count($request['uri-ids'] ?? []), ]); } }