From: Michael Date: Tue, 24 May 2022 17:28:35 +0000 (+0000) Subject: Increase the delivery queue counter on drop X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=74b102b94806bbf5b04b7f2a87acbfeeb68d7525;p=friendica.git Increase the delivery queue counter on drop --- diff --git a/src/Protocol/ActivityPub/Delivery.php b/src/Protocol/ActivityPub/Delivery.php index ebf8ffb2b6..6e97b0b927 100644 --- a/src/Protocol/ActivityPub/Delivery.php +++ b/src/Protocol/ActivityPub/Delivery.php @@ -167,9 +167,9 @@ class Delivery 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); }