diff --git a/src/Worker/APDelivery.php b/src/Worker/APDelivery.php index 634a9446e..2048b97d0 100644 --- a/src/Worker/APDelivery.php +++ b/src/Worker/APDelivery.php @@ -41,10 +41,9 @@ class APDelivery extends BaseObject $data = ActivityPub\Transmitter::createCachedActivityFromItem($target_id); if (!empty($data)) { $success = HTTPSignature::transmit($data, $inbox, $uid); - } - - if ($success && in_array($cmd, [Delivery::POST, Delivery::COMMENT])) { - ItemDeliveryData::incrementQueueDone($target_id); + if ($success && in_array($cmd, [Delivery::POST, Delivery::COMMENT])) { + ItemDeliveryData::incrementQueueDone($target_id); + } } }