Increase the delivery queue counter on drop
This commit is contained in:
parent
bee6ffe968
commit
74b102b948
|
@ -167,9 +167,9 @@ class Delivery
|
||||||
|
|
||||||
self::setSuccess($receivers, $success);
|
self::setSuccess($receivers, $success);
|
||||||
|
|
||||||
Logger::debug('Delivered', ['uri-id' => $uri_id, 'uid' => $uid, 'item_id' => $item_id, 'cmd' => $cmd, 'inbox' => $inbox, 'success' => $success]);
|
Logger::debug('Delivered', ['uri-id' => $uri_id, 'uid' => $uid, 'item_id' => $item_id, 'cmd' => $cmd, 'inbox' => $inbox, 'success' => $success, 'serverfailure' => $serverfail, 'drop' => $drop]);
|
||||||
|
|
||||||
if ($success && in_array($cmd, [WorkerDelivery::POST])) {
|
if (($success || $drop) && in_array($cmd, [WorkerDelivery::POST])) {
|
||||||
Post\DeliveryData::incrementQueueDone($uri_id, Post\DeliveryData::ACTIVITYPUB);
|
Post\DeliveryData::incrementQueueDone($uri_id, Post\DeliveryData::ACTIVITYPUB);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user