Merge pull request #7599 from annando/delivery-counter

Fixes the delivery counter for edits
This commit is contained in:
Hypolite Petovan 2019-09-05 07:10:57 -04:00 committed by GitHub
commit f90827d020
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -543,13 +543,13 @@ class Notifier
Hook::callAll('notifier_end', $target_item);
// Workaround for pure connector posts
if ($delivery_queue_count == 0) {
ItemDeliveryData::incrementQueueDone($target_item['id']);
$delivery_queue_count = 1;
}
if (in_array($cmd, [Delivery::POST, Delivery::POKE])) {
ItemDeliveryData::update($target_item['id'], ['queue_count' => $delivery_queue_count]);
if ($delivery_queue_count == 0) {
ItemDeliveryData::incrementQueueDone($target_item['id']);
$delivery_queue_count = 1;
}
ItemDeliveryData::incrementQueueCount($target_item['id'], $delivery_queue_count);
}
}