From 49e836c44311408238df8330f85adb6a9ca1928b Mon Sep 17 00:00:00 2001 From: Matthew Exon Date: Tue, 26 Dec 2023 16:34:57 +0000 Subject: [PATCH] some more robust mailstream stuff --- mailstream/mailstream.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mailstream/mailstream.php b/mailstream/mailstream.php index 2744a7fff..218289c3e 100644 --- a/mailstream/mailstream.php +++ b/mailstream/mailstream.php @@ -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']]);