mirror of
https://github.com/friendica/friendica
synced 2025-04-29 03:04:22 +02:00
Hubzilla doesn't return the handle in the hcard
This commit is contained in:
parent
b8a8bb21d0
commit
0b7e8b7fb4
3 changed files with 6 additions and 4 deletions
|
@ -1093,7 +1093,6 @@ class Probe {
|
|||
* @return array Diaspora data
|
||||
*/
|
||||
private static function diaspora($webfinger) {
|
||||
|
||||
$hcard_url = "";
|
||||
$data = array();
|
||||
foreach ($webfinger["links"] as $link) {
|
||||
|
@ -1129,6 +1128,8 @@ class Probe {
|
|||
foreach ($webfinger["aliases"] as $alias) {
|
||||
if (normalise_link($alias) != normalise_link($data["url"]) && ! strstr($alias, "@")) {
|
||||
$data["alias"] = $alias;
|
||||
} elseif (substr($alias, 0, 5) == 'acct:') {
|
||||
$data["addr"] = substr($alias, 5);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue