diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-09-24 17:41:05 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-09-24 17:41:05 -0700 |
commit | 2c665e5e4cbd5530bc979c99022a2513c67a5425 (patch) | |
tree | f7b4945ef472b3cb4bd0fdb2f0a19e160b2265a0 /include/deliver.php | |
parent | 2fe3d16bbed892b2c1287ba876ae54ff502edbad (diff) | |
download | volse-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/deliver.php')
-rw-r--r-- | include/deliver.php | 8 |
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); |