aboutsummaryrefslogtreecommitdiffstats
path: root/include/deliver.php
diff options
context:
space:
mode:
authorzottel <github@zottel.net>2015-09-25 11:19:42 +0200
committerzottel <github@zottel.net>2015-09-25 11:19:42 +0200
commita7b2d23e9b59805a35380478ca3501fc315edb78 (patch)
treea2f6517fa09b83419403b93663e3ccd187fa3fbf /include/deliver.php
parent03fb13e7497457d5fe69fc8ed007e5e49a2d6d8a (diff)
parentba94f824b992f9ed787a71c2956388e975058ca8 (diff)
downloadvolse-hubzilla-a7b2d23e9b59805a35380478ca3501fc315edb78.tar.gz
volse-hubzilla-a7b2d23e9b59805a35380478ca3501fc315edb78.tar.bz2
volse-hubzilla-a7b2d23e9b59805a35380478ca3501fc315edb78.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);