aboutsummaryrefslogtreecommitdiffstats
path: root/include/deliver.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-09-29 22:11:10 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-09-29 22:11:10 -0700
commitcca9f2392e2fe44476ea7373ef11533da9205a23 (patch)
tree3f7bd9419a7f2f10ae38683c2f20109b48c58f09 /include/deliver.php
parent928fa44154e2d4ecbb2f08d30f428682b8d55e34 (diff)
downloadvolse-hubzilla-cca9f2392e2fe44476ea7373ef11533da9205a23.tar.gz
volse-hubzilla-cca9f2392e2fe44476ea7373ef11533da9205a23.tar.bz2
volse-hubzilla-cca9f2392e2fe44476ea7373ef11533da9205a23.zip
queue cleanup, and report issues
Diffstat (limited to 'include/deliver.php')
-rw-r--r--include/deliver.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/deliver.php b/include/deliver.php
index 86fc90b3f..518f1bc44 100644
--- a/include/deliver.php
+++ b/include/deliver.php
@@ -29,6 +29,8 @@ function deliver_run($argv, $argc) {
* If not, reduce the outq_priority.
*/
+ $base = '';
+
$h = parse_url($r[0]['outq_posturl']);
if($h) {
$base = $h['scheme'] . '://' . $h['host'] . (($h['port']) ? ':' . $h['port'] : '');
@@ -76,10 +78,12 @@ 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 site set site_update = '%s', site_dead = 0 where site_url = '%s' ",
- dbesc(datetime_convert()),
- dbesc($site_url)
- );
+ if($base) {
+ q("update site set site_update = '%s', site_dead = 0 where site_url = '%s' ",
+ dbesc(datetime_convert()),
+ dbesc($base)
+ );
+ }
q("update dreport set status = '%s', dreport_time = '%s' where dreport_queue = '%s' limit 1",
dbesc('accepted for delivery'),
dbesc(datetime_convert()),