- break;
- case NETWORK_OSTATUS:
- if($contact['notify']) {
- logger('queue: slapdelivery: item ' . $q_item['id'] . ' for ' . $contact['name']);
- $deliver_status = slapper($owner,$contact['notify'],$data);
-
- if($deliver_status == (-1))
- update_queue_time($q_item['id']);
- else
- 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;
+ case NETWORK_DIASPORA:
+ if ($contact['notify']) {
+ logger('queue: diaspora_delivery: item '.$q_item['id'].' for '.$contact['name'].' <'.$contact['url'].'>');
+ $deliver_status = Diaspora::transmit($owner, $contact, $data, $public, true);
+
+ if ($deliver_status == (-1)) {
+ update_queue_time($q_item['id']);
+ Cache::set($cachekey_deadguy.$contact['notify'], true, CACHE_QUARTER_HOUR);
+ } else {
+ remove_queue_item($q_item['id']);