mirror of
https://github.com/friendica/friendica
synced 2024-12-23 17:20:16 +00:00
Handle profile page detection without a type
This commit is contained in:
parent
eec6cdf01b
commit
d6c25dc63c
1 changed files with 6 additions and 0 deletions
|
@ -1412,6 +1412,8 @@ class Probe
|
||||||
$data["guid"] = $link["href"];
|
$data["guid"] = $link["href"];
|
||||||
} elseif (($link["rel"] == "http://webfinger.net/rel/profile-page") && (($link["type"] ?? "") == "text/html") && !empty($link["href"])) {
|
} elseif (($link["rel"] == "http://webfinger.net/rel/profile-page") && (($link["type"] ?? "") == "text/html") && !empty($link["href"])) {
|
||||||
$data["url"] = $link["href"];
|
$data["url"] = $link["href"];
|
||||||
|
} elseif (($link["rel"] == "http://webfinger.net/rel/profile-page") && empty($link["type"]) && !empty($link["href"])) {
|
||||||
|
$profile_url = $link["href"];
|
||||||
} elseif (($link["rel"] == ActivityNamespace::FEED) && !empty($link["href"])) {
|
} elseif (($link["rel"] == ActivityNamespace::FEED) && !empty($link["href"])) {
|
||||||
$data["poll"] = $link["href"];
|
$data["poll"] = $link["href"];
|
||||||
} elseif (($link["rel"] == ActivityNamespace::POCO) && !empty($link["href"])) {
|
} elseif (($link["rel"] == ActivityNamespace::POCO) && !empty($link["href"])) {
|
||||||
|
@ -1428,6 +1430,10 @@ class Probe
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (empty($data["url"]) && !empty($profile_url)) {
|
||||||
|
$data["url"] = $profile_url;
|
||||||
|
}
|
||||||
|
|
||||||
if (empty($data["url"]) || empty($hcard_url)) {
|
if (empty($data["url"]) || empty($hcard_url)) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue