]> git.mxchange.org Git - friendica.git/blobdiff - include/queue_fn.php
finish dipsy light colour fixes
[friendica.git] / include / queue_fn.php
index 3c1087f4eb68fb32d12608ba54af35f8cb6e6723..2aca338f50d4e250707dbedf6e046d159c711281 100644 (file)
@@ -15,6 +15,17 @@ function remove_queue_item($id) {
        );
 }
 
+function was_recently_delayed($cid) {
+
+       $r = q("SELECT `id` FROM `queue` WHERE `cid` = %d 
+               and last > UTC_TIMESTAMP() - interval 15 minute limit 1",
+               intval($cid)
+       );
+       if(count($r))
+               return true;
+       return false;
+}
+
 
 function add_to_queue($cid,$network,$msg,$batch = false) {