mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-12-22 19:50:20 +00:00
Merge pull request 'More comprehensible check for root user contact' (#1525) from mexon/friendica-addons:mat/mailstream-clarify-log into develop
Reviewed-on: https://git.friendi.ca/friendica/friendica-addons/pulls/1525
This commit is contained in:
commit
ce53e48cb2
1 changed files with 4 additions and 4 deletions
|
@ -144,12 +144,12 @@ function mailstream_post_hook(array &$item)
|
|||
{
|
||||
mailstream_check_version();
|
||||
|
||||
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…
Reference in a new issue