Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/Service/FederatedEventService.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

namespace OCA\Circles\Service;

use OC;
use OCA\Circles\Db\EventWrapperRequest;
use OCA\Circles\Db\MemberRequest;
use OCA\Circles\Db\RemoteRequest;
Expand Down Expand Up @@ -161,7 +162,7 @@ public function newEvent(FederatedEvent $event): array {
return $event->getOutcome();
}

if (!$event->isAsync()) {
if (OC::$CLI || !$event->isAsync()) {
$federatedItem->manage($event);
}

Expand Down Expand Up @@ -385,7 +386,8 @@ private function configureEvent(FederatedEvent $event, IFederatedItem $item) {
*/
public function initBroadcast(FederatedEvent $event): bool {
$instances = $this->getInstances($event);
if (empty($instances) && !$event->isAsync()) {
// if empty instance and ran from CLI, any action as already been managed
if (empty($instances) && (!$event->isAsync() || OC::$CLI)) {
return false;
}

Expand Down
Loading