Merge remote-tracking branch 'upstream/develop' into more-privacy

This commit is contained in:
Michael 2023-07-16 09:41:55 +00:00
commit 0ea93bfba1
2 changed files with 1 additions and 3 deletions

View file

@ -1381,8 +1381,6 @@ class Conversation
continue;
}
$threadsid++;
// prevent private email from leaking.
if ($item['network'] === Protocol::MAIL && $this->session->getLocalUserId() != $item['uid']) {
continue;

View file

@ -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'] ?? []),
]);
}
}