aboutsummaryrefslogtreecommitdiffstats
path: root/include/queue_fn.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-04-03 16:43:30 -0700
committerMario Vavti <mario@mariovavti.com>2017-04-04 10:02:33 +0200
commit50612565e97bcb20a822f94766fb5e1bd38f7cda (patch)
tree5c1510fb86fe712461db1696d0381d269f0f1d13 /include/queue_fn.php
parenta9bda2b12e3d393fa854e23207a081052e2e7bfd (diff)
downloadvolse-hubzilla-50612565e97bcb20a822f94766fb5e1bd38f7cda.tar.gz
volse-hubzilla-50612565e97bcb20a822f94766fb5e1bd38f7cda.tar.bz2
volse-hubzilla-50612565e97bcb20a822f94766fb5e1bd38f7cda.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' => ''
+ ]
);
}
}