diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-12-21 17:00:42 -0800 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-12-21 17:00:42 -0800 |
commit | 7a9fe0907a748f28520810be0b18d598fdec99ff (patch) | |
tree | 0850aabb200925c9bb7b5c2d7008fd1dc29f1478 | |
parent | bc5a675cdf40bb326a3b674643beb62ee53fdb3a (diff) | |
download | volse-hubzilla-7a9fe0907a748f28520810be0b18d598fdec99ff.tar.gz volse-hubzilla-7a9fe0907a748f28520810be0b18d598fdec99ff.tar.bz2 volse-hubzilla-7a9fe0907a748f28520810be0b18d598fdec99ff.zip |
make the queue api accessible to addons
-rw-r--r-- | include/queue_fn.php | 8 | ||||
-rw-r--r-- | version.inc | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/include/queue_fn.php b/include/queue_fn.php index 1e53d7488..92299a193 100644 --- a/include/queue_fn.php +++ b/include/queue_fn.php @@ -88,6 +88,7 @@ function queue_deliver($outq, $immediate = false) { } } else { + // zot sites should all have a site record, unless they've been dead for as long as // your site has existed. Since we don't know for sure what these sites are, // call them unknown @@ -100,6 +101,11 @@ function queue_deliver($outq, $immediate = false) { } } + $arr = array('outq' => $outq, 'handled' => false, 'immediate' => $immediate); + call_hooks('queue_deliver',$arr); + if($arr['handled']) + return; + // "post" queue driver - used for diaspora and friendica-over-diaspora communications. if($outq['outq_driver'] === 'post') { @@ -122,7 +128,7 @@ function queue_deliver($outq, $immediate = false) { else { logger('deliver: queue post returned ' . $result['return_code'] . ' from ' . $outq['outq_posturl'],LOGGER_DEBUG); - update_queue_item($argv[$x]); + update_queue_item($outq['outq_posturl']); } return; } diff --git a/version.inc b/version.inc index 75d1e127a..11ed8a97d 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2015-12-20.1252 +2015-12-21.1253 |