]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Post/Delivery.php
spelling: documentation
[friendica.git] / src / Model / Post / Delivery.php
index 52c1bf8e0ee979c9d29c3f0fd9af65dcd8dd2906..0e343e87182e1c354688133250e34a47eb89ad33 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -83,7 +83,7 @@ class Delivery
 
        public static function selectForInbox(string $inbox)
        {
-               $rows = DBA::select('post-delivery', [], ['inbox-id' => ItemURI::getIdByURI($inbox)], ['order' => ['created']]);
+               $rows = DBA::select('post-delivery', [], ["`inbox-id` = ? AND `failed` < ?", ItemURI::getIdByURI($inbox), DI::config()->get('system', 'worker_defer_limit')], ['order' => ['created']]);
                $deliveries = [];
                while ($row = DBA::fetch($rows)) {
                        if (!empty($row['receivers'])) {