aboutsummaryrefslogtreecommitdiffstats
path: root/include/queue.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-24 01:21:24 -0700
committerFriendika <info@friendika.com>2011-08-24 01:21:24 -0700
commit2aa23843e401e7f448c3d12f844934da6c27f8ef (patch)
treef36ffd56669d32b1ace2034ceb0cb3a3178a6f7d /include/queue.php
parent2cfdcee29a80e355307d013fe71d23a7300f8d98 (diff)
downloadvolse-hubzilla-2aa23843e401e7f448c3d12f844934da6c27f8ef.tar.gz
volse-hubzilla-2aa23843e401e7f448c3d12f844934da6c27f8ef.tar.bz2
volse-hubzilla-2aa23843e401e7f448c3d12f844934da6c27f8ef.zip
D* queue
Diffstat (limited to 'include/queue.php')
-rw-r--r--include/queue.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/queue.php b/include/queue.php
index fb65d5c25..da5028aee 100644
--- a/include/queue.php
+++ b/include/queue.php
@@ -56,6 +56,7 @@ function queue_run($argv, $argc){
// delivery loop
require_once('include/salmon.php');
+ require_once('include/diaspora.php');
foreach($r as $q_item) {
@@ -120,6 +121,18 @@ function queue_run($argv, $argc){
remove_queue_item($q_item['id']);
}
break;
+ case NETWORK_DIASPORA:
+ if($contact['notify']) {
+ logger('queue: diaspora_delivery: item ' . $q_item['id'] . ' for ' . $contact['name']);
+ $deliver_status = diaspora_transmit($owner,$contact['notify'],$data);
+
+ if($deliver_status == (-1))
+ update_queue_time($q_item['id']);
+ else
+ remove_queue_item($q_item['id']);
+ }
+ break;
+
default:
$params = array('owner' => $owner, 'contact' => $contact, 'queue' => $q_item, 'result' => false);
call_hooks('queue_deliver', $a, $params);