aboutsummaryrefslogtreecommitdiffstats
path: root/include/deliver.php
diff options
context:
space:
mode:
authorHaakon Meland Eriksen <haakon.eriksen@far.no>2015-09-25 17:52:58 +0200
committerHaakon Meland Eriksen <haakon.eriksen@far.no>2015-09-25 17:52:58 +0200
commitb22fa9f7f4b77569c29b0fc881373393281b7bf4 (patch)
tree510549743c5dede2ab5360a516768264fb29336b /include/deliver.php
parent414b5ea6f3ad616c5211b0e9d4b811c149decf26 (diff)
parentba94f824b992f9ed787a71c2956388e975058ca8 (diff)
downloadvolse-hubzilla-b22fa9f7f4b77569c29b0fc881373393281b7bf4.tar.gz
volse-hubzilla-b22fa9f7f4b77569c29b0fc881373393281b7bf4.tar.bz2
volse-hubzilla-b22fa9f7f4b77569c29b0fc881373393281b7bf4.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'include/deliver.php')
-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);