Compare commits
3 commits
d98a6b4edf
...
589cf712cc
Author | SHA1 | Date | |
---|---|---|---|
|
589cf712cc | ||
ce53e48cb2 | |||
|
f3db763c59 |
1 changed files with 4 additions and 4 deletions
|
@ -123,12 +123,12 @@ function mailstream_send_hook(array $data)
|
|||
*/
|
||||
function mailstream_post_hook(array &$item)
|
||||
{
|
||||
if (!DI::pConfig()->get($item['uid'], 'mailstream', 'enabled')) {
|
||||
Logger::debug('mailstream not enabled.', ['item' => $item['id'], 'uid' => $item['uid']]);
|
||||
if ($item['uid'] === 0) {
|
||||
Logger::debug('mailstream: root user, skipping item ' . $item['id']);
|
||||
return;
|
||||
}
|
||||
if (!$item['uid']) {
|
||||
Logger::debug('no uid', ['item' => $item['id']]);
|
||||
if (!DI::pConfig()->get($item['uid'], 'mailstream', 'enabled')) {
|
||||
Logger::debug('mailstream: not enabled.', ['item' => $item['id'], ' uid ' => $item['uid']]);
|
||||
return;
|
||||
}
|
||||
if (!$item['contact-id']) {
|
||||
|
|
Loading…
Add table
Reference in a new issue