Config for receiver / fix fatals

This commit is contained in:
Michael 2022-07-28 21:16:42 +00:00
parent f0499e7269
commit b63ad63c29
5 changed files with 14 additions and 6 deletions

View file

@ -592,7 +592,7 @@ class Receiver
return;
}
if (!empty($object_data['entry-id']) && ($push || ($activity['completion-mode'] == self::COMPLETION_RELAY))) {
if (!empty($object_data['entry-id']) && DI::config()->get('system', 'decoupled_receiver') && ($push || ($activity['completion-mode'] == self::COMPLETION_RELAY))) {
// We delay by 5 seconds to allow to accumulate all receivers
$delayed = date(DateTimeFormat::MYSQL, time() + 5);
Logger::debug('Initiate processing', ['id' => $object_data['entry-id'], 'uri' => $object_data['object_id']]);