aboutsummaryrefslogtreecommitdiffstats
path: root/include/deliver.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-08-26 16:35:06 -0700
committerfriendica <info@friendica.com>2014-08-26 16:35:06 -0700
commit289ec34ae6890a2d82071b61a12fad866be9f0d0 (patch)
treebf69fcac7f040e0153feee89d6f69dd31e91f011 /include/deliver.php
parentc99d89e441c742ceaaa299c9de9c2fb322b41993 (diff)
downloadvolse-hubzilla-289ec34ae6890a2d82071b61a12fad866be9f0d0.tar.gz
volse-hubzilla-289ec34ae6890a2d82071b61a12fad866be9f0d0.tar.bz2
volse-hubzilla-289ec34ae6890a2d82071b61a12fad866be9f0d0.zip
take off the kid gloves
Diffstat (limited to 'include/deliver.php')
-rw-r--r--include/deliver.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/deliver.php b/include/deliver.php
index 0ad008c23..6edf3d60f 100644
--- a/include/deliver.php
+++ b/include/deliver.php
@@ -20,6 +20,20 @@ function deliver_run($argv, $argc) {
dbesc($argv[$x])
);
if($r) {
+ if($r[0]['outq_driver'] === 'post') {
+ $result = z_post_url($r[0]['outq_posturl'],$r[0]['outq_msg']);
+ if($result['success'] && $result['status_code'] < 300) {
+ logger('deliver: queue post success to ' . $r[0]['outq_posturl'], LOGGER_DEBUG);
+ }
+ else {
+ $y = q("update outq set outq_updated = '%s' where outq_hash = '%s' limit 1",
+ dbesc(datetime_convert()),
+ dbesc($argv[$x])
+ );
+ }
+ continue;
+ }
+
if($r[0]['outq_posturl'] === z_root() . '/post') {
logger('deliver: local delivery', LOGGER_DEBUG);
// local delivery