X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FWorker%2FQueue.php;h=179e37c0770bc7bd501a0866adc281f21e98b0f8;hb=52a799574d3475c97e970e041d1577850920d0ef;hp=47f1c8044b0b50039f7681989e086feff31b3142;hpb=e8bac997283634bc4b9ec78a5b09277c9dfc6131;p=friendica.git diff --git a/src/Worker/Queue.php b/src/Worker/Queue.php index 47f1c8044b..179e37c077 100644 --- a/src/Worker/Queue.php +++ b/src/Worker/Queue.php @@ -1,9 +1,7 @@ UTC_TIMESTAMP() - INTERVAL 12 HOUR AND `last` < UTC_TIMESTAMP() - INTERVAL 15 MINUTE) OR (`last` < UTC_TIMESTAMP() - INTERVAL 1 HOUR)) ORDER BY `cid`, `created`"); - call_hooks('queue_predeliver', $a, $r); + call_hooks('queue_predeliver', $r); if (DBM::is_result($r)) { foreach ($r as $q_item) { @@ -141,7 +140,7 @@ class Queue case NETWORK_OSTATUS: if ($contact['notify']) { logger('queue: slapdelivery: item ' . $q_item['id'] . ' for ' . $contact['name'] . ' <' . $contact['url'] . '>'); - $deliver_status = slapper($owner, $contact['notify'], $data); + $deliver_status = Salmon::slapper($owner, $contact['notify'], $data); if ($deliver_status == (-1)) { update_queue_time($q_item['id']); @@ -167,7 +166,7 @@ class Queue default: $params = array('owner' => $owner, 'contact' => $contact, 'queue' => $q_item, 'result' => false); - call_hooks('queue_deliver', $a, $params); + call_hooks('queue_deliver', $params); if ($params['result']) { remove_queue_item($q_item['id']);