]> git.mxchange.org Git - friendica.git/commitdiff
Fixes the delivery counter for edits
authorMichael <heluecht@pirati.ca>
Wed, 4 Sep 2019 21:06:25 +0000 (21:06 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 4 Sep 2019 21:06:25 +0000 (21:06 +0000)
src/Worker/Notifier.php

index 102b24d0ad64234787e1903443553422e1564cd5..154a638502a6bc4a0337ef90484b955dca353b44 100644 (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);
                        }
                }