diff options
author | friendica <info@friendica.com> | 2012-10-31 18:05:36 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-10-31 18:05:36 -0700 |
commit | 0dd06b736a227196154332168d29f6c807819a83 (patch) | |
tree | dfc84f5d8f893ef099b275cbf495934575ffcecd /include | |
parent | 2a0ff2b542649685ab2472a003c2a92073ab224e (diff) | |
download | volse-hubzilla-0dd06b736a227196154332168d29f6c807819a83.tar.gz volse-hubzilla-0dd06b736a227196154332168d29f6c807819a83.tar.bz2 volse-hubzilla-0dd06b736a227196154332168d29f6c807819a83.zip |
need to accomodate different webbies on different hubs
Diffstat (limited to 'include')
-rw-r--r-- | include/identity.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/identity.php b/include/identity.php index e05aaba30..b0a99a744 100644 --- a/include/identity.php +++ b/include/identity.php @@ -100,12 +100,13 @@ 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_flags, + $r = q("insert into hubloc ( hubloc_guid, hubloc_guid_sig, hubloc_hash, hubloc_addr, hubloc_flags, hubloc_url, hubloc_url_sig, hubloc_host, hubloc_callback, hubloc_sitekey ) - values ( '%s', '%s', '%s', %d, '%s', '%s', '%s', '%s', '%s' )", + values ( '%s', '%s', '%s', '%s', %d, '%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), dbesc(z_root()), dbesc(base64url_encode(rsa_sign(z_root(),$ret['channel']['channel_prvkey']))), |