diff options
author | friendica <info@friendica.com> | 2015-01-20 16:13:18 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-01-20 16:13:18 -0800 |
commit | ee3eee425c92b37fba5a7035d8e9ec0b0b563d0b (patch) | |
tree | d999bde3128a6a8c514388d318d3a2f68635aa41 /include/identity.php | |
parent | 6f11f20992c88ff48a55929e94d9003fcc437062 (diff) | |
download | volse-hubzilla-ee3eee425c92b37fba5a7035d8e9ec0b0b563d0b.tar.gz volse-hubzilla-ee3eee425c92b37fba5a7035d8e9ec0b0b563d0b.tar.bz2 volse-hubzilla-ee3eee425c92b37fba5a7035d8e9ec0b0b563d0b.zip |
that should take care of the bitfields in hubloc
Diffstat (limited to 'include/identity.php')
-rw-r--r-- | include/identity.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/identity.php b/include/identity.php index d98f39cb7..f5a729573 100644 --- a/include/identity.php +++ b/include/identity.php @@ -291,14 +291,14 @@ function create_identity($arr) { // Create a verified hub location pointing to this site. - $r = q("insert into hubloc ( hubloc_guid, hubloc_guid_sig, hubloc_hash, hubloc_addr, hubloc_flags, + $r = q("insert into hubloc ( hubloc_guid, hubloc_guid_sig, hubloc_hash, hubloc_addr, hubloc_primary, hubloc_url, hubloc_url_sig, hubloc_host, hubloc_callback, hubloc_sitekey, hubloc_network ) values ( '%s', '%s', '%s', '%s', %d, '%s', '%s', '%s', '%s', '%s', '%s' )", dbesc($guid), dbesc($sig), dbesc($hash), dbesc($ret['channel']['channel_address'] . '@' . get_app()->get_hostname()), - intval(($primary) ? HUBLOC_FLAGS_PRIMARY : 0), + intval($primary), dbesc(z_root()), dbesc(base64url_encode(rsa_sign(z_root(),$ret['channel']['channel_prvkey']))), dbesc(get_app()->get_hostname()), |