aboutsummaryrefslogtreecommitdiffstats
path: root/include/queue_fn.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-04-03 16:43:30 -0700
committerzotlabs <mike@macgirvin.com>2017-04-03 16:43:30 -0700
commitd6c23486d563e29862d3db891e67649d13e6def0 (patch)
treeaec0bc40905c4204eb13975e331978a4ce461007 /include/queue_fn.php
parent26125bcf0b8ce98fa4522f89792d7e77f25ff1ca (diff)
downloadvolse-hubzilla-d6c23486d563e29862d3db891e67649d13e6def0.tar.gz
volse-hubzilla-d6c23486d563e29862d3db891e67649d13e6def0.tar.bz2
volse-hubzilla-d6c23486d563e29862d3db891e67649d13e6def0.zip
create site_store_lowlevel() to initialise data structures for the site table
Diffstat (limited to 'include/queue_fn.php')
-rw-r--r--include/queue_fn.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/queue_fn.php b/include/queue_fn.php
index ede6c8f11..c9179b953 100644
--- a/include/queue_fn.php
+++ b/include/queue_fn.php
@@ -146,10 +146,14 @@ function queue_deliver($outq, $immediate = false) {
// your site has existed. Since we don't know for sure what these sites are,
// call them unknown
- q("insert into site (site_url, site_update, site_dead, site_type, site_crypto) values ('%s','%s',0,%d,'') ",
- dbesc($base),
- dbesc(datetime_convert()),
- intval(($outq['outq_driver'] === 'post') ? SITE_TYPE_NOTZOT : SITE_TYPE_UNKNOWN)
+ site_store_lowlevel(
+ [
+ 'site_url' => $base,
+ 'site_update' => datetime_convert(),
+ 'site_dead' => 0,
+ 'site_type' => intval(($outq['outq_driver'] === 'post') ? SITE_TYPE_NOTZOT : SITE_TYPE_UNKNOWN),
+ 'site_crypto' => ''
+ ]
);
}
}