- Avoid incrementing the queue done if Transmitter::createCachedActivityFromItem fails
$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);
+ }
}
}