From 16a0afbbaebccecfd1e2b6b5246f416db4aa32bd Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 4 Sep 2019 21:06:25 +0000 Subject: [PATCH] Fixes the delivery counter for edits --- src/Worker/Notifier.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Worker/Notifier.php b/src/Worker/Notifier.php index 102b24d0ad..154a638502 100644 --- a/src/Worker/Notifier.php +++ b/src/Worker/Notifier.php @@ -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); } } -- 2.39.5