Merge pull request #7599 from annando/delivery-counter
Fixes the delivery counter for edits
This commit is contained in:
commit
f90827d020
1 changed files with 6 additions and 6 deletions
|
@ -543,13 +543,13 @@ class Notifier
|
||||||
Hook::callAll('notifier_end', $target_item);
|
Hook::callAll('notifier_end', $target_item);
|
||||||
|
|
||||||
// Workaround for pure connector posts
|
// Workaround for pure connector posts
|
||||||
|
if (in_array($cmd, [Delivery::POST, Delivery::POKE])) {
|
||||||
if ($delivery_queue_count == 0) {
|
if ($delivery_queue_count == 0) {
|
||||||
ItemDeliveryData::incrementQueueDone($target_item['id']);
|
ItemDeliveryData::incrementQueueDone($target_item['id']);
|
||||||
$delivery_queue_count = 1;
|
$delivery_queue_count = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (in_array($cmd, [Delivery::POST, Delivery::POKE])) {
|
ItemDeliveryData::incrementQueueCount($target_item['id'], $delivery_queue_count);
|
||||||
ItemDeliveryData::update($target_item['id'], ['queue_count' => $delivery_queue_count]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue