make the queue api accessible to addons
This commit is contained in:
parent
bc5a675cdf
commit
7a9fe0907a
@ -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;
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
2015-12-20.1252
|
||||
2015-12-21.1253
|
||||
|
Reference in New Issue
Block a user