some more robust mailstream stuff

This commit is contained in:
Matthew Exon 2023-12-26 16:34:57 +00:00 committed by Matthew Exon
parent 234d2173d3
commit 49e836c443

View file

@ -99,6 +99,11 @@ function mailstream_send_hook(array $data)
return;
}
if ($item['deleted']) {
Logger::debug('mailstream_send_hook skipping deleted item', ['guid' => $item['guid']]);
return;
}
$user = User::getById($item['uid']);
if (empty($user)) {
Logger::error('could not find user', ['uid' => $item['uid']]);