]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/ItemDeliveryData.php
Merge pull request #8226 from nupplaphil/bug/wait_for_conn
[friendica.git] / src / Model / ItemDeliveryData.php
index 5a181eb1b188f01e81acbc772e21aa5b602671fe..3e2a75598a57dd2f6b0df41646eb8613542cf915 100644 (file)
@@ -29,6 +29,7 @@ class ItemDeliveryData
        const LEGACY_DFRN = 3;
        const DIASPORA = 4;
        const OSTATUS = 5;
+       const MAIL = 6;
 
        /**
         * Extract delivery data from the provided item fields
@@ -111,7 +112,7 @@ class ItemDeliveryData
         * @return bool
         * @throws \Exception
         */
-       public static function incrementQueueCount($item_id, $increment)
+       public static function incrementQueueCount(int $item_id, int $increment = 1)
        {
                return DBA::e('UPDATE `item-delivery-data` SET `queue_count` = `queue_count` + ? WHERE `iid` = ?', $increment, $item_id);
        }