aboutsummaryrefslogtreecommitdiffstats
path: root/include/queue.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-06-05 02:18:18 -0700
committerFriendika <info@friendika.com>2011-06-05 02:18:18 -0700
commit7b02e178a4dd56e7658af5f01a50a778d3212573 (patch)
treefc521e1603a7b5b5110f80b667a9f9b90fbab052 /include/queue.php
parent182582eed8672b0c75aae747413be2cc6ce0709f (diff)
downloadvolse-hubzilla-7b02e178a4dd56e7658af5f01a50a778d3212573.tar.gz
volse-hubzilla-7b02e178a4dd56e7658af5f01a50a778d3212573.tar.bz2
volse-hubzilla-7b02e178a4dd56e7658af5f01a50a778d3212573.zip
more work on facebook re-queue
Diffstat (limited to 'include/queue.php')
-rw-r--r--include/queue.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/queue.php b/include/queue.php
index 79f656017..cbda196da 100644
--- a/include/queue.php
+++ b/include/queue.php
@@ -55,7 +55,11 @@ function queue_run($argv, $argc){
require_once('include/salmon.php');
foreach($r as $q_item) {
- $qi = q("SELECT * FROM `queue` WHERE `id` = %d LIMIT 1",
+
+ // queue_predeliver hooks may have changed the queue db details,
+ // so check again if this entry still needs processing
+
+ $qi = q("SELECT * FROM `queue` WHERE `id` = %d AND `last` < UTC_TIMESTAMP() - INTERVAL 15 MINUTE ",
intval($q_item['id'])
);
if(! count($qi))