finish remaining places where xchan_store_lowlevel needs to be used

This commit is contained in:
zotlabs
2017-01-29 15:25:24 -08:00
parent d5d67708ac
commit 9addcfe827
2 changed files with 21 additions and 31 deletions

View File

@@ -1450,7 +1450,6 @@ function discover_by_webbie($webbie) {
);
}
else {
$r = xchan_store_lowlevel(
[
'xchan_hash' => $address,
@@ -1463,17 +1462,6 @@ function discover_by_webbie($webbie) {
'xchan_network' => $network
]
);
$r = q("insert into xchan ( xchan_hash, xchan_guid, xchan_pubkey, xchan_addr, xchan_url, xchan_name, xchan_network, xchan_name_date ) values ('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s') ",
dbesc($address),
dbesc(($diaspora_guid) ? $diaspora_guid : $location),
dbesc($pubkey),
dbesc($address),
dbesc($location),
dbesc($fullname),
dbesc($network),
dbescdate(datetime_convert())
);
}
$r = q("select * from hubloc where hubloc_hash = '%s' limit 1",