X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FPost%2FDelivery.php;h=c53014fa516ff8ee6fbcfaeacedf428c72db4fed;hb=59a822ee872647b3680220ead282438c857d5f5b;hp=52c1bf8e0ee979c9d29c3f0fd9af65dcd8dd2906;hpb=a662245c744f4d2faa1b533977f7d21b4de6a724;p=friendica.git diff --git a/src/Model/Post/Delivery.php b/src/Model/Post/Delivery.php index 52c1bf8e0e..c53014fa51 100644 --- a/src/Model/Post/Delivery.php +++ b/src/Model/Post/Delivery.php @@ -1,6 +1,6 @@ $uri_id, 'inbox-id' => ItemURI::getIdByURI($inbox)]); } 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'])) {