aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-09-24 17:41:05 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-09-24 17:41:05 -0700
commit2c665e5e4cbd5530bc979c99022a2513c67a5425 (patch)
treef7b4945ef472b3cb4bd0fdb2f0a19e160b2265a0 /include
parent2fe3d16bbed892b2c1287ba876ae54ff502edbad (diff)
downloadvolse-hubzilla-2c665e5e4cbd5530bc979c99022a2513c67a5425.tar.gz
volse-hubzilla-2c665e5e4cbd5530bc979c99022a2513c67a5425.tar.bz2
volse-hubzilla-2c665e5e4cbd5530bc979c99022a2513c67a5425.zip
add Diaspora (actually any external service which uses the queue) to delivery reports
Diffstat (limited to 'include')
-rw-r--r--include/deliver.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/deliver.php b/include/deliver.php
index 7a43e3d47..82a1ac6df 100644
--- a/include/deliver.php
+++ b/include/deliver.php
@@ -62,9 +62,17 @@ function deliver_run($argv, $argc) {
$result = z_post_url($r[0]['outq_posturl'],$r[0]['outq_msg']);
if($result['success'] && $result['return_code'] < 300) {
logger('deliver: queue post success to ' . $r[0]['outq_posturl'], LOGGER_DEBUG);
+
+ q("update dreport set status = '%s', dreport_time = '%s' where dreport_queue = '%s' limit 1",
+ dbesc('accepted for delivery'),
+ dbesc(datetime_convert()),
+ dbesc($argv[$x])
+ );
+
$y = q("delete from outq where outq_hash = '%s'",
dbesc($argv[$x])
);
+
}
else {
logger('deliver: queue post returned ' . $result['return_code'] . ' from ' . $r[0]['outq_posturl'],LOGGER_DEBUG);