diff options
author | Andrew Manning <tamanning@zoho.com> | 2017-01-31 17:36:42 -0500 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2017-01-31 17:36:42 -0500 |
commit | d3d540a28b2dd0b4958d129cceeba162c271302b (patch) | |
tree | 172400257279ede716ce88983b8bb3b281aa8d84 /include/network.php | |
parent | fab103524ab2b171d36c6f3830da682b0768627f (diff) | |
parent | a6cbebe03c4c1ca66b4b55c340ebb1d369d93c3a (diff) | |
download | volse-hubzilla-d3d540a28b2dd0b4958d129cceeba162c271302b.tar.gz volse-hubzilla-d3d540a28b2dd0b4958d129cceeba162c271302b.tar.bz2 volse-hubzilla-d3d540a28b2dd0b4958d129cceeba162c271302b.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev
Diffstat (limited to 'include/network.php')
-rw-r--r-- | include/network.php | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/include/network.php b/include/network.php index 9049d016b..66716ef9e 100644 --- a/include/network.php +++ b/include/network.php @@ -1469,15 +1469,18 @@ function discover_by_webbie($webbie) { ); if(! $r) { - $r = q("insert into hubloc ( hubloc_guid, hubloc_hash, hubloc_addr, hubloc_network, hubloc_url, hubloc_host, hubloc_callback, hubloc_updated, hubloc_primary ) values ('%s','%s','%s','%s','%s','%s','%s','%s', 1)", - dbesc(($diaspora_guid) ? $diaspora_guid : $location), - dbesc($address), - dbesc($address), - dbesc($network), - dbesc($base), - dbesc($host), - dbesc($notify), - dbescdate(datetime_convert()) + $r = hubloc_store_lowlevel( + [ + 'hubloc_guid' => (($diaspora_guid) ? $diaspora_guid : $location), + 'hubloc_hash' => $address, + 'hubloc_addr' => $address, + 'hubloc_network' => $network, + 'hubloc_url' => $base, + 'hubloc_host' => $host, + 'hubloc_callback' => $notify, + 'hubloc_updated' => datetime_convert(), + 'hubloc_primary' => 1 + ] ); } $photos = import_xchan_photo($avatar,$address); |