diff options
author | zottel <github@zottel.net> | 2016-08-10 13:49:48 +0200 |
---|---|---|
committer | zottel <github@zottel.net> | 2016-08-10 13:49:48 +0200 |
commit | 8706cbe1c413ed8fcfb7dcb35c7b319d2d1116bb (patch) | |
tree | 499ab4cac571c35f6d0758f157ed85af46c8b57c /include/network.php | |
parent | 6ba142fd33a74a7bdb4f3dfc8c0c0f507c293a2e (diff) | |
parent | 7a557d31e026705fc3bd2d4f39c4c679449cef56 (diff) | |
download | volse-hubzilla-8706cbe1c413ed8fcfb7dcb35c7b319d2d1116bb.tar.gz volse-hubzilla-8706cbe1c413ed8fcfb7dcb35c7b319d2d1116bb.tar.bz2 volse-hubzilla-8706cbe1c413ed8fcfb7dcb35c7b319d2d1116bb.zip |
Merge remote-tracking branch 'upstream/dev' into dev
Diffstat (limited to 'include/network.php')
-rw-r--r-- | include/network.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/include/network.php b/include/network.php index 47863b680..fe001b362 100644 --- a/include/network.php +++ b/include/network.php @@ -1343,13 +1343,18 @@ function discover_by_webbie($webbie) { $fullname = $vcard['fn']; if($vcard['photo'] && (strpos($vcard['photo'],'http') !== 0)) $vcard['photo'] = $diaspora_base . '/' . $vcard['photo']; - if(($vcard['key']) && (! $pubkey)) - $pubkey = $vcard['key']; + if(($vcard['public_key']) && (! $pubkey)) { + $diaspora_key = $vcard['public_key']; + if(strstr($diaspora_key,'RSA ')) + $pubkey = rsatopem($diaspora_key); + else + $pubkey = $diaspora_key; + } if(! $avatar) $avatar = $vcard['photo']; if($diaspora) { - if(($vcard['guid']) && (! $diaspora_guid)) - $diaspora_guid = $vcard['guid']; + if(($vcard['uid']) && (! $diaspora_guid)) + $diaspora_guid = $vcard['uid']; if(($vcard['url']) && (! $diaspora_base)) $diaspora_base = $vcard['url']; |