mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-11 19:08:49 +00:00
More comprehensible check for root user contact
This commit is contained in:
parent
432165e79a
commit
ca1de575c6
1 changed files with 4 additions and 4 deletions
|
@ -163,12 +163,12 @@ function mailstream_post_hook(array &$item)
|
||||||
{
|
{
|
||||||
mailstream_check_version();
|
mailstream_check_version();
|
||||||
|
|
||||||
if (!DI::pConfig()->get($item['uid'], 'mailstream', 'enabled')) {
|
if ($item['uid'] === 0) {
|
||||||
Logger::debug('mailstream: not enabled.', ['item' => $item['id'], ' uid ' => $item['uid']]);
|
Logger::debug('mailstream: root user, skipping item ' . $item['id']);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!$item['uid']) {
|
if (!DI::pConfig()->get($item['uid'], 'mailstream', 'enabled')) {
|
||||||
Logger::debug('mailstream: no uid for item ' . $item['id']);
|
Logger::debug('mailstream: not enabled.', ['item' => $item['id'], ' uid ' => $item['uid']]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!$item['contact-id']) {
|
if (!$item['contact-id']) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue