Fix ActivityPubDeliveryService

pull/7345/head
Daniel Supernault 6 days ago
parent 4f4308feb7
commit 4d65db9fc5
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1

@ -374,7 +374,8 @@ class ActivityPubDeliveryService
'body' => $payload,
]);
}
}
},
self::concurrency()
);
$deliveriesByIndex = [];
@ -486,6 +487,14 @@ class ActivityPubDeliveryService
return $result;
}
private static function concurrency(): int
{
return max(
1,
(int) config('federation.activitypub.delivery.concurrency', 10)
);
}
/**
* Validate that the profile is a local, active profile that may be used
* to sign outgoing ActivityPub requests.

Loading…
Cancel
Save