forked from friendica/friendica-addons
some more robust mailstream stuff
This commit is contained in:
parent
234d2173d3
commit
49e836c443
1 changed files with 5 additions and 0 deletions
|
@ -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']]);
|
||||
|
|
Loading…
Reference in a new issue