]> git.mxchange.org Git - friendica.git/commitdiff
Increase the delivery queue counter on drop
authorMichael <heluecht@pirati.ca>
Tue, 24 May 2022 17:28:35 +0000 (17:28 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 24 May 2022 17:28:35 +0000 (17:28 +0000)
src/Protocol/ActivityPub/Delivery.php

index ebf8ffb2b60620d03e8119d6889a9c8bb7bf6220..6e97b0b92731bcb237636fc596dd8fb3cf837de5 100644 (file)
@@ -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);
                }